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
Hi!
I'm using @on_predicate and sending max_retries parameter 0.
I saw that the failing requests are continue to fire and tried to debug.
I think that in case of 0 max_retries the backoff library is entering a infinite loop and keeps on trying the failing request.
tries += 1
there is a check tries == max_tries
tries is starting at 1 and max_tries is always 0 in my case.
Also, what will heppend if I will pass a negative max_tries parameter?
please fix this
thanks
The text was updated successfully, but these errors were encountered:
Hi!
I'm using @on_predicate and sending max_retries parameter 0.
I saw that the failing requests are continue to fire and tried to debug.
I think that in case of 0 max_retries the backoff library is entering a infinite loop and keeps on trying the failing request.
tries += 1
there is a check tries == max_tries
tries is starting at 1 and max_tries is always 0 in my case.
Also, what will heppend if I will pass a negative max_tries parameter?
please fix this
thanks
The text was updated successfully, but these errors were encountered: