Pcornel
Automation · Error Handling

Retry

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

Back to the Topic

Answer

Retry in error handling repeats a failed operation for transient problems like timeouts or HTTP 503, with a maximum count and backoff, such as until/retries in Ansible.

Remember

  • Retry transient errors like timeouts and HTTP 503.
  • Limit retries and back off.
  • Only retry safe operations.

First checks

  • Retry wrapper with attempts — policy
  • Only idempotent operations retried — safety
  • Retry logging — visibility

Verify in this order

transient error → retry → success/give up

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.

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

Confirmation

Confirm action

Continue?