Expand description
Durable run records for hosts that serve many runs (an HTTP server, a job queue).
A RunStore keeps, per run: a RunRecord (status, outputs, pause
reasons…), the run’s events as JSON, and the Snapshot of a paused run, so
a run can be resumed by id after the client went away or the host restarted.
Nothing secret is persisted: event values serialize with secrets masked, and
snapshots never contain secret plaintext (see crate::snapshot).
Structs§
- RunFilter
- Query for
RunStore::list. - RunPage
- One page of
RunStore::list, newest first. - RunRecord
- Persisted summary of one run.
Enums§
- RunStatus
- Lifecycle status of a stored run.
- Store
Error - Store failure.
Constants§
- INTERRUPTED_
BY_ RESTART - Error message stored on runs interrupted by a host restart.
Traits§
- RunStore
- Durable storage of run records, events and snapshots.
Functions§
- event_
to_ json - Serialize an event for storage. Secrets are masked by the value serializer; the
snapshot carried by
run_pausedis dropped (stores keep it separately). - now_ms
- Current Unix time in milliseconds (0 where no clock exists).
- page_of
- Apply
filterto records already sorted newest first (shared by implementations). - sort_
newest_ first - Sort records newest first (ties broken by id, descending) for
page_of. - validate_
run_ id - Validate a run id used as a storage key: 1–128 chars of
[A-Za-z0-9_.-], not starting with..
Type Aliases§
- Store
Result - Result type of
RunStoreoperations.