You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently if retriable anticipates that the max_elapsed_time will be reached, it just raises the error right then.
This is fine however as a user, I'd like to know if this has occurred and if this is the reason the code is no longer being retried (as opposed to if it was just because we reached the number of tries)
So this issue proposes the following interface:
do_this_when_max_elapsed_time_reached=Proc.newdo |exception,try,elapsed_time|
# ex: log here that the max elapsed time has been reachedendRetriable.retriable(on_max_elapsed_time_reached: do_this_when_max_elapsed_time_reached)do# code here...end
This mainly comes up b/c I have an idea for how long the code will run, but it can sometimes run for longer and I'd like to log these instances
The text was updated successfully, but these errors were encountered:
Currently if retriable anticipates that the
max_elapsed_time
will be reached, it just raises the error right then.This is fine however as a user, I'd like to know if this has occurred and if this is the reason the code is no longer being retried (as opposed to if it was just because we reached the number of tries)
So this issue proposes the following interface:
This mainly comes up b/c I have an idea for how long the code will run, but it can sometimes run for longer and I'd like to log these instances
The text was updated successfully, but these errors were encountered: