Pcornel
Automation · Workflow Automation

Rollback

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

Back to the Topic

Answer

Rollback in workflows runs compensating steps in reverse order when a later step fails, undoing what earlier steps did, also known as the saga pattern.

Remember

  • Compensating steps undo completed work in reverse.
  • This is the saga pattern.
  • Test compensations.

First checks

  • Compensation steps (saga) — rollback logic
  • Rollback tests — proof
  • Partial completion handling — state

Verify in this order

failure → compensating steps in reverse

Where it usually breaks

Commit/input → runner/job → build/test artifact → deployment request → target rollout/reconcile → effective version/config → health/readiness → workload.

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

Confirmation

Confirm action

Continue?