Automation · Error Handling
Continue on Error
Cheat sheet · https://pcornel.dk/topic.php?topic=5975
Answer
Continue on error lets a job proceed after a non-critical step fails, such as ignore_errors in Ansible or -ErrorAction Continue, while recording the failure so it is not missed.
Remember
- Record the failure.
- Only for truly optional steps.
- Report at the end.
First checks
- ignore_errors / continue-on-error / -ErrorAction Continue usage — deliberate only
- Documented reason per use — justification
- Errors still reported — visibility
Verify in this order
non-critical error → logged → 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.
Error Handling → Continue on Error · operational reference
| Layer | Error Handling → Continue on Error operational reference |
|---|---|
| Runtime/ownership | workflow continue-on-error / tolerated-failure semantics · the workflow engine status-propagation policy deciding whether a failed step/job is tolerated for overall workflow continuation |
| Persistent intent | explicit allow-failure rule scoped to one step/job plus downstream conditions that consume its outcome/conclusion |
| Verification | Run one intentionally failing tolerated step and one non-tolerated control step; inspect step outcome/conclusion, job/workflow status and downstream conditions, then verify any target side effect separately. |
| Expected interpretation | Only the reviewed step/job failure is tolerated, the raw failure remains visible for audit, downstream logic can distinguish it from success, and unsafe/partial target state cannot pass final verification. |
| Recovery boundary | preserve raw failure and target state, remove or narrow the tolerance if unsafe, repair the failing operation, then rerun both tolerated and non-tolerated fixtures to verify status propagation |
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=5975