Skip to main content

Module resume

Module resume 

Source
Expand description

Persist and query per-step completion for setup resume.

Structs§

ResumeState
Serialized resume file: ordered step completion records.
ResumeStepRecord
One recorded attempt for a step id.

Enums§

StepStatus
Derived status of a registered step against ResumeState.

Functions§

is_stale
True when recorded completion is older than the binary’s step_version.
load
Load resume JSON from path, or an empty state when the file is missing.
mark_failed
Replace any prior record for step_id with a failure and save.
record_ok
Replace any prior record for step with a successful completion and save.
save
Write resume JSON (pretty) to path, creating parent directories as needed.
status_for
Compute StepStatus from the latest matching record in state.