Use this when some targets succeeded and others failed.
Partial Failure · Error Handling
Partial failure is when a job succeeds on some targets and fails on others. Report exactly which ones failed and make reruns idempotent so only those are retried.
1. Partial failure: some targets changed, others not.
2. Track results per target.
3. Decide: roll back all or roll forward remaining.
4. Idempotent reruns.
5. Report clearly.
batch → mixed results → reconcile
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 Common mistakes Narrow the fault
- Reporting only overall failure.
- Re-runs that redo successful work non-idempotently.
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.
- Report exactly which failed.
- Rerun only failed targets.
- Idempotency makes reruns safe.
- Per-target status report — what succeeded
- Stop/continue policy — containment
- Reconciliation step — consistency
ReferenceWhy it matters1 section · depth on demand
What it is
Partial failure: some targets or steps succeed and others fail. Report exactly which, and make re-runs safe.
ReferenceImportant terms & boundaries2 sections · depth on demand
In depth
A partial failure is a run where some targets or steps succeeded and others failed. It is the normal failure mode for automation over many systems, and the dangerous part is that the estate is now inconsistent: some devices have the new configuration, some do not.
Handling options:
| Approach | When |
|---|---|
| Continue, report failures | Independent targets, change is safe to apply partly |
| Stop at threshold | Shared risk; avoid spreading a bad change |
| Roll back successes | All-or-nothing changes (consistency required) |
| Retry failures only | Transient errors |
Whatever the choice, the result must list which targets succeeded, failed and were never attempted. Ansible's play recap and .retry files, or a per-target status table in a script, make the next step straightforward.
PLAY RECAP
sw01 : ok=12 changed=3 unreachable=0 failed=0
sw02 : ok=4 changed=0 unreachable=1 failed=0
Documented example, not captured output.
Mechanics
The linked authority for bounded mechanics is Microsoft Azure Architecture Center — Retry pattern; documentation support is separate from observed lab/production Evidence.
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 > Partial Failure. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://learn.microsoft.com/en-us/azure/architecture/patterns/retry · confidence 94%