Skip to main content

Module model

Module model 

Source
Expand description

Execution history events and the state derived from them.

The event history is authoritative (RFC-0001 §9.8): ExecutionState is always the left fold of apply over an execution’s events, so a runtime restart reconstructs exactly the state that was committed.

Modules§

codes
Runtime-generated error codes.

Structs§

ExecutionState
HistoryEvent
A recorded event with its position and commit time.
ParentRef
Link from a child execution to the parent unit that started it.
TaskError
Structured task error, as reported by a worker or produced by the runtime.
UnitKey
A unit key decomposed: [compensate:]step[[index]].
UnitState
One schedulable unit: a workflow step, or the compensation of a step (key compensate:<step>).

Enums§

AbortReason
Why a running workflow is being wound down.
CompensationOutcome
Event
UnitStatus
WorkflowStatus

Functions§

apply
Apply one event. Pure and total: unknown combinations are ignored so that replaying an older history never panics.
compensation_key
element_key
Unit key of element i of a for step.
parse_key