Skip to content
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

Bug 1458850 - Don't retry tasks that throw a KeyError #3817

Merged
merged 1 commit into from Jul 23, 2018

Conversation

ghickman
Copy link
Contributor

This tells our retryable_task decorator to not retry tasks that throw a KeyError since that situation is unlikely to change on a retry.

@ghickman ghickman requested a review from edmorley July 23, 2018 09:38
@@ -23,6 +23,7 @@ class retryable_task(object):
jsonschema.ValidationError,
# eg during log decompression
zlib.error,
KeyError,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you move this up with the other built-in exceptions? (Or else perhaps we should just sort this alphabetically?)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure thing, I've sorted (case-insensitively) and rebased into this commit.

Copy link
Contributor

@edmorley edmorley left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(Happy to merge once updated)

@ghickman ghickman merged commit 1717431 into master Jul 23, 2018
@ghickman ghickman deleted the stop-keyerror-task-retrys branch July 23, 2018 10:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants