feat(code_review): Retry task up to five times#107011
Merged
Conversation
- Changed MAX_RETRIES from 3 to 5 in task.py - Updated test assertions to reflect 5 retries - Updated test comments to reflect new retry count and latency calculations Co-authored-by: armenzg <armenzg@sentry.io>
Contributor
|
Cursor Agent can help with this pull request. Just |
giovanni-guidini
approved these changes
Jan 27, 2026
priscilawebdev
pushed a commit
that referenced
this pull request
Feb 2, 2026
<!-- Describe your PR here. --> Increases the `MAX_RETRIES` for the `seer.code_review.task` from 3 to 5. This change enhances the resilience of the code review webhook processing against transient failures by allowing more retry attempts. Related test assertions and expected latency calculations have been updated accordingly. --- Linear Issue: [CW-647](https://linear.app/getsentry/issue/CW-647/retry-the-task-5-times) <a href="https://cursor.com/background-agent?bcId=bc-8550a5ec-b27a-4ff4-bd9a-2d08da5695be"><picture><source media="(prefers-color-scheme: dark)" srcset="https://cursor.com/open-in-cursor-dark.svg"><source media="(prefers-color-scheme: light)" srcset="https://cursor.com/open-in-cursor-light.svg"><img alt="Open in Cursor" src="https://cursor.com/open-in-cursor.svg"></picture></a> <a href="https://cursor.com/agents?id=bc-8550a5ec-b27a-4ff4-bd9a-2d08da5695be"><picture><source media="(prefers-color-scheme: dark)" srcset="https://cursor.com/open-in-web-dark.svg"><source media="(prefers-color-scheme: light)" srcset="https://cursor.com/open-in-web-light.svg"><img alt="Open in Web" src="https://cursor.com/open-in-web.svg"></picture></a> Co-authored-by: Cursor Agent <cursoragent@cursor.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Increases the
MAX_RETRIESfor theseer.code_review.taskfrom 3 to 5.This change enhances the resilience of the code review webhook processing against transient failures by allowing more retry attempts. Related test assertions and expected latency calculations have been updated accordingly.
Linear Issue: CW-647