pub enum ExecutionOutcome {
Done(State),
Interrupted {
value: Value,
state: State,
checkpoint_id: String,
},
}Expand description
How a run ended.
Variants§
Done(State)
The run terminated normally (routing reached Route::End or no
nodes remained active). Carries the final state.
Interrupted
A node called interrupt(payload): the run is suspended and
resumable. Carry on by calling Executor::run again with the same
thread_id and RunConfig::resume set.
Suspension is run-wide, not node-local. The in-flight super-step is transactional: every write of the step is discarded (including writes from sibling nodes that completed before the interrupt was observed at the barrier), still-running siblings are aborted, and the suspension checkpoint re-schedules every node of the step. On resume all of them re-execute from their start, so node logic must be idempotent.
Implementations§
Source§impl ExecutionOutcome
impl ExecutionOutcome
Sourcepub fn is_interrupted(&self) -> bool
pub fn is_interrupted(&self) -> bool
Whether the run ended in ExecutionOutcome::Interrupted (suspended,
resumable) rather than ExecutionOutcome::Done.