-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
fix: use backoff exception to gracefully exit and fail #8257
Conversation
# I was not able to track all the exception types that can be raised from this block | ||
# of code. | ||
@backoff.on_exception(backoff.expo, | ||
Exception, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could consider a tuple of multiple exceptions as an alternative to the generic
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done! Changed to include ones I could find for now, and additional ones could be easily added in the future.
I think there is some curse on this issue, we're struggling with this for months now 🤣 |
It has been a tough one to crack indeed :( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It won't get worse I guess ;)
Tests are expected to fail but admin merging to help tests get unblocked. |
Description
The current retry is making tests fail out. Instead of indefinitely waiting, retrying with a specific number should help determine whether test passes / fails.
Unfortunately I can't get the test to pass, but happy to incorporate ideas to help get this test passing. For now, they no longer will be timing out after ~5 hours, instead they'll fail or pass immediately.
Fixes #8219. Towards #7277.
Checklist
nox -s py-3.9
(see Test Environment Setup)nox -s lint
(see Test Environment Setup)