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
- Send the request.
- If there is an error, wait.
- Try again, but not endlessly: usually 3–5 attempts.
- Once the attempts are exhausted, record the error and move on.
The Link to Rate Limits
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.