A checkpoint is a consistent recovery boundary
How durable checkpoints preserve consistent workflow state for recovery, including how checkpoint placement affects the safe resumption of external actions. · advanced
A durable checkpoint records enough workflow state to continue after the worker disappears. It normally identifies the execution, the next workflow node, completed results, pending actions, and any data needed by later steps. A transcript or a worker's local memory is not necessarily enough: neither reliably says which operation should run next.
The checkpoint must describe one consistent logical point. For example, a checkpoint that says “validation complete; submit order next” must include the validated order, or a reference to its durable, immutable version. Mixing a new workflow position with an old payload can resume an execution that never actually existed.
Publishing the checkpoint must not expose a partial state. One approach is to persist referenced artifacts first, then atomically publish a checkpoint record that names them. Recovery uses only committed records. Include a state-format version so recovery can reject incompatible state rather than silently interpret it incorrectly.