3 ms·
The thing that always gets me with retries is error handling. What errors should be considered retryable, vs raise immediately? Do you log a retryable error?
by ekimekim 7y ago
The thing that always gets me with retries is error handling.
What errors should be considered retryable, vs raise immediately?
Do you log a retryable error? I've had systems mysteriously "hung" before which on closer inspection were infinitely retrying with a retry library that didn't log anything...
And if you do exceed your max retries, which error do you raise? The first one? The last one? There's no guarentee they'll be the same. A completely different "TooManyRetries" error?
These are the concerns I'd like to see addressed in a high level overview of a library like this one.
- inetknght 7y agoAlso: what if you get different retriable errors every time you re-try: should you have different retry count for each distinct retriable error? When you finally give up, should you report _all_ of the distinct errors or just the earliest or latest retriable error, or ...