pub enum RunState {
Succeeded,
Failed,
Cancelled,
}Expand description
Terminal classification of a single-task run per EXEC-009.
The variants exhaustively cover the spec’s three terminal
classifications: succeeded, failed, and cancelled-by-executor.
The cancelled variant is produced only by the spawn-step
future when the run-context’s cancellation token fires while
the child is in flight; until that wiring lands no
run_task call returns RunState::Cancelled.
Variants§
Succeeded
A fresh run with exit status zero, or a cache hit (a hit
asserts a prior successful run per CACHE-018).
Failed
A fresh run whose command terminated with a non-zero exit status or whose process was killed by a signal not initiated by the executor.
Cancelled
A fresh run whose child was signalled by the executor in
response to the run’s cancellation token firing
(EXEC-009 cancelled state, EXEC-013 step 2). Distinct
from Self::Failed so the run summary can tell
executor-initiated termination apart from a task that
failed under its own power.