We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Currently the on_retry parameter is called each time the passed in block of code raises a matching exception.
on_retry
I am proposing that there be a on_final_failure (or similarly named) parameter which is a proc that is called after all retries have been exhausted.
on_final_failure
The use case is that:
I know there are current ways to do this outside of the gem, but I think the following interface could be nice:
do_this_on_each_retry = Proc.new { } do_this_on_final_retry = Proc.new { } Retriable.retriable(on_retry: do_this_on_each_retry, on_final_failure: do_this_on_final_retry) do # code here.. end
This allows me to have custom logic for the final failure, while still allowing the error to be raised by Retriable
Retriable
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Currently the
on_retry
parameter is called each time the passed in block of code raises a matching exception.I am proposing that there be a
on_final_failure
(or similarly named) parameter which is a proc that is called after all retries have been exhausted.The use case is that:
I know there are current ways to do this outside of the gem, but I think the following interface could be nice:
This allows me to have custom logic for the final failure, while still allowing the error to be raised by
Retriable
The text was updated successfully, but these errors were encountered: