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

Mark TransientError retryable #71

Merged
merged 2 commits into from
Sep 30, 2019

Conversation

seanh
Copy link
Contributor

@seanh seanh commented Sep 27, 2019

If you raise a TransientError subclass then your request will be retried but pyramid_retry functions like is_error_retryable() will incorrectly return False.

Mark TransientError as retryable so that is_error_retryable() correctly returns True.

Fixes #70

If you raise a TransientError subclass then your request *will* be
retried but pyramid_retry functions like is_error_retryable() will
return False.

Mark TransientError as retryable so that is_error_retryable() correctly
returns True.

Fixes Pylons#70
@mmerickel
Copy link
Member

Do you mind adding your name to CONTRIBUTORS.txt here and in your pyramid_retry PR?

@seanh
Copy link
Contributor Author

seanh commented Sep 27, 2019

Done

@mmerickel mmerickel merged commit 59d6ef4 into Pylons:master Sep 30, 2019
mmerickel added a commit that referenced this pull request Sep 30, 2019
@seanh seanh deleted the mark-TransientError-retryable branch September 30, 2019 23:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

mark the transaction.TransientError type with pyramid_retry.mark_error_retryable
2 participants