-
Notifications
You must be signed in to change notification settings - Fork 146
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
exception introspection to determine retry #8
Comments
Maybe we could add a
Does this sound like it would work? Is it general enough? Is the issue limited to determining when to retry/give up? Another solution, using the current API, might be to wrap the exception raising code with a function such that you're dealing with values rather than exceptions. Then backoff.on_predicate can be useful for this. For example, we have some code which looks like:
|
This feature is now released in backoff==1.3.1 |
in some cases to know if a backoff is retryable vs perm error, we need to inspect the exception instance to match against retryable error codes.
The text was updated successfully, but these errors were encountered: