Skip to main content

Module dispatch

Module dispatch 

Source
Expand description

Core dispatch loop that composes all engine primitives.

The dispatch loop orchestrates the full run lifecycle: promote → select → gate → lease → execute → finish → release.

Workers execute via tokio::task::spawn_blocking and communicate results back through an unbounded MPSC channel. The dispatch loop owns all WAL mutation authority exclusively — workers never write to the WAL.

Structs§

DispatchConfig
Configuration parameters for the dispatch loop that group backoff, concurrency, lease, and snapshot settings.
DispatchLoop
The core dispatch loop that composes all engine primitives.
RunSummary
Summary of a run_until_idle session.
TickResult
Result of a single dispatch tick.

Enums§

DispatchError
Errors that can occur during dispatch.

Type Aliases§

AuthorityError
Concrete authority error type used by the dispatch loop.