Re:Opnieuw: A simple and intuitive retrying library for Python
by inetknght on Wednesday February 05, 2020 @12:29PM
(#22249029)
Also: 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 ...
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.