Use this when a non-critical failure should not stop the job.
Continue on Error
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.
1. Continue on error only for non-critical steps.
2. Document why.
3. Still report errors.
4. Never for changes that later steps depend on.
5. Review regularly.
non-critical error → logged → continue
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Verification path Verify boundary
The primary procedure is: 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. Exercise failure-oriented cases such as setting continue-on-error globally, hiding test/security failures, downstream steps reading a “success” aggregate instead of step outcome, matrix behavior misunderstood and tolerated mutation failure leaving partial target state so the test covers failure cases, not only the happy path.
Step 2 Common mistakes Narrow the fault
- Continuing after errors that make later steps unsafe.
Step 3 Where it fails Narrow the fault
Failure analysis for Error Handling → Continue on Error should follow the path through the components: step execution → raw exit/error → tolerated-failure policy → job/workflow status aggregation → downstream condition → target verification. Tests should include edge cases such as setting continue-on-error globally, hiding test/security failures, downstream steps reading a “success” aggregate instead of step outcome, matrix behavior misunderstood and tolerated mutation failure leaving partial target state. Recovery should 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.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- Record the failure.
- Only for truly optional steps.
- Report at the end.
- ignore_errors / continue-on-error / -ErrorAction Continue usage — deliberate only
- Documented reason per use — justification
- Errors still reported — visibility
ReferenceWhy it matters1 section · depth on demand
In depth
Continue on error lets automation keep processing other items or steps after one fails, then report all failures at the end. It suits independent items — collecting backups from 500 devices — but is dangerous for dependent steps.
- name: Collect facts
cisco.ios.ios_facts:
ignore_unreachable: true
ignore_errors: true
register: facts
| Good fit | Bad fit |
|---|---|
| Read-only collection | Steps that depend on earlier ones |
| Independent device updates with reporting | Multi-step changes on one device |
Always end such jobs with a summary of failures and a non-zero exit status if any item failed.
ReferenceImportant terms & boundaries1 section · depth on demand
Mechanics
Continue on Error in Error Handling is owned at runtime by the workflow engine status-propagation policy deciding whether a failed step/job is tolerated for overall workflow continuation. The durable intent is explicit allow-failure rule scoped to one step/job plus downstream conditions that consume its outcome/conclusion. Reliable automation must carry stable identity across the path: workflow/run/job/step ID and policy/expression selecting tolerated failure. The consumer-visible target is control-flow and aggregate status only; the underlying failed operation remains failed and must not be reclassified as successful evidence. The key invariants are tolerated failures remain observable, only reviewed failure classes/steps are allowed, downstream logic reads the correct outcome field and production safety gates cannot be bypassed by broad continue-on-error.
ReferenceConfiguration & state1 section · depth on demand
Lifecycle
Store and review explicit allow-failure rule scoped to one step/job plus downstream conditions that consume its outcome/conclusion; pin or at least record implementation/model versions and keep environment-specific identity outside reusable logic where possible. The stable identity contract is workflow/run/job/step ID and policy/expression selecting tolerated failure.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Error Handling > Continue on Error. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-syntax · confidence 94%Quick lookup tables
Error Handling → Continue on Error · operational reference
Context-specific ownership, verification, output and failure-boundary lookup for Error Handling → Continue on Error.
| 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 |
Deep reference
Healthy vs suspicious evidence
Output interpretation
At minimum retain run/job/step IDs, raw exit/error, outcome/conclusion, continue-on-error policy, downstream condition result, aggregate workflow status and independent target verification. The useful output makes ambiguity visible, links to the target identity from workflow/run/job/step ID and policy/expression selecting tolerated failure, and provides enough context to safely decide whether a retry is permitted.