Skip to content

Retry

A repeated attempt to perform an operation after a failure. If a request fails because of the network or a server error, the script waits and tries again.

Why It Is Needed

Networks are unreliable: timeouts, dropped connections, temporary 500 or 429 errors. A retry turns a one-off failure into a success — with no manual intervention.

Typical Logic

  1. Send the request.
  2. If there is an error, wait.
  3. Try again, but not endlessly: usually 3–5 attempts.
  4. Once the attempts are exhausted, record the error and move on.

On a 429 error (rate limit) the pause should grow: exponentially, for example. This is the polite way not to hammer the service.

Where It Is Implemented

Retries are part of the orchestrator: it decides what to repeat and with what pause.

See Also

← All Terms