Skip to main content

Module durable_workload

Module durable_workload 

Source

Structs§

DurableWorkload
One workload as tracked by a provider.
HeartbeatObservation
A heartbeat the provider received from the relay pool.
QuorumConfig
Operator-tunable timing + quorum knobs.
WorkloadStateMachine
The state machine. Holds a map of tracked workloads keyed by workload_id. Drives transitions on each tick.

Enums§

ReplicationMode
Replication / availability mode chosen by the consumer at spawn.
RestartPolicy
What to do when a workload exits unexpectedly.
StateMachineEvent
Side-effects the state machine asks the controller to perform. The state machine never does I/O — it returns events and the caller (typically ProviderService::run’s fourth concurrent loop) translates them into Nostr publishes / backend respawns.
WorkloadState
Lifecycle state for a workload tracked by a single provider.