-
-
Notifications
You must be signed in to change notification settings - Fork 282
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
Add retry_if_exception_match #125
Comments
It could be nicer to extend the existing
|
@immerrr I thought about it but since there were already retry_if_exception(type=MyException)
retry_if_exception(match="pattern") and so on. |
I think having a separate classes is a good idea because it gives greater granularity for use cases where several retry predicates need to be chained. It allows you to do things like separating exception type from exception message.
vs.
Then even if exception @jd Any interest in this? I put together a rough sketch of what it could look like here. |
@Brian-Williams That sounds like a good idea. Feel free to send a PR. |
Should this issue be closed? I think it was resolved |
As there is
retry_if_exception_type
, would it be possible to haveretry_if_exception_match
?It would replace :
by:
The text was updated successfully, but these errors were encountered: