-
-
Notifications
You must be signed in to change notification settings - Fork 275
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
attempt_number should be set to 0 #459
Comments
I believe the "max attempt" is not for retries, but for all attempts. Ie. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
tenacity/tenacity/__init__.py
Line 535 in cb15300
attempt_number should be set to 1
the stop_after_attempt is checking current_attempt >= max_attempt
As aresult we are retrying 1 less time than max_attempt
In case max_attempt = 1, there are no retries.
The condition for stop after retry should be ">" and not ">=" OR attempt_number should be set to 0
The text was updated successfully, but these errors were encountered: