Pcornel
Automation · Automation Design

Checkpoints

Cheat sheet · https://pcornel.dk/topic.php?topic=5207

Back to the Topic

Answer

Checkpoints record progress at safe points in a long automation job, so a failure later does not mean starting over and the job can resume from the last completed step.

Remember

  • Record progress at safe points.
  • Steps after a checkpoint must be idempotent.
  • Store checkpoints durably.

First checks

  • Checkpoint records (step completed) — progress
  • State persisted between steps — resumability
  • Checkpoint cleanup — hygiene

Verify in this order

step done → checkpoint saved → continue

Where it usually breaks

Input/desired state → request accepted → job/task terminal status → target object read-back → effective runtime state → original workload → regression/rollback readiness.

Checkpoints operational decision reference

Checkpoint field/boundaryKnown-goodBroken or riskyResume action
Workflow versionExact compatible versionUnknown/incompatible versionFail closed or migrate explicitly
Input fingerprintMatches current desired inputDesired input changedRe-plan before continuing
Target scopeSame stable identitiesTargets added/removed/reusedResolve scope again
Last committed effectTarget read-back confirms effectCheckpoint and target disagreeInvestigate crash/drift boundary
OwnershipOne valid lease/workerMultiple active ownersStop duplicate resume
Next actionExplicit and idempotent/boundedAmbiguous continuationRequire owner review

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=5207

Confirmation

Confirm action

Continue?