Skip to main content

Module step_machine

Module step_machine 

Source
Expand description

The step state machine (see docs/kernel-protocol.md).

The diagram’s edges, plus two that fall out of how work actually lands:

  • scheduled → succeeded|failed: a worker may return a result inline, before the host ever records running.
  • retrying → succeeded|failed: the same for a result that beats the reschedule.

Terminal statuses have no outgoing edges; the kernel prunes terminal steps from KernelState::steps, so a later event for one reports unknown_step.

Constants§

ALL_STATUSES
Every status, in declaration order. Used by the exhaustive legality test.

Functions§

is_legal
Whether from → to is an edge of the step state machine.