Simple default retry predicate for non-idempotent targets.
If your target is idempotent, use default_retry_predicate instead.
Retries on 429
(Too Many Requests) and 503
(Service Unavailable), as well
as on ConnectionFailedError
.
For more information, see Retry steps.
Arguments
Arguments | |
---|---|
exception |
The error to apply the retry criterion upon. |
Returns
true
when the retry criterion is satisfied, false
otherwise.