Expand description
Database-agnostic scheduler for claimed long-running workflow instances.
Structs§
- Driver
Registry - Drivers keyed by the specs they own.
- Evaluation
Outcome - Completion-policy accounting for one evaluation.
- Memory
Work Queue - In-memory
WorkQueuefor consumer unit tests: hands out queued items in order and records every committed command. No leases, no durability. - Supervisor
Settings - Pass configuration.
- Supervisor
Stats - Result of one pass.
- Wakeup
- A durable fact that became due for a claimed instance: an expired timer or a pending trigger delivery. The driver reads it; the queue marks it consumed in the same transaction that commits the driver’s command.
- Work
Item - One claimed instance with everything a driver needs to evaluate it.
- Workflow
Transition Command - The only result a workflow driver may return. The queue commits the state, event, intents and scheduling disposition atomically before any provider is allowed to dispatch an external effect.
Enums§
- Supervisor
Error - Failure at the supervisor boundary. Driver evaluation reasons stay
Stringbecause they are product-authored text recorded verbatim in the failure event; everything the kernel itself decides is typed here. - Work
Disposition - What the queue does with the instance after committing a command.
Traits§
- Work
Queue - Durable queue the supervisor claims from and commits to.
- Workflow
Driver - Deterministic evaluator for the specs it owns.
Functions§
- run_
due_ pass - One supervisor pass: claim due work, evaluate concurrently under renewed leases, commit every command. A failing context factory requeues every claimed item with the failure.