Skip to content

feat(code_review): Retry task up to five times#107011

Merged
armenzg merged 1 commit intomasterfrom
cursor/CW-647-code-review-retries-a93c
Jan 27, 2026
Merged

feat(code_review): Retry task up to five times#107011
armenzg merged 1 commit intomasterfrom
cursor/CW-647-code-review-retries-a93c

Conversation

@armenzg
Copy link
Member

@armenzg armenzg commented Jan 26, 2026

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

Open in Cursor Open in Web

- 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>
@cursor
Copy link
Contributor

cursor bot commented Jan 26, 2026

Cursor Agent can help with this pull request. Just @cursor in comments and I'll start working on changes in this branch.
Learn more about Cursor Agents

@linear
Copy link

linear bot commented Jan 26, 2026

@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Jan 26, 2026
@armenzg armenzg self-assigned this Jan 26, 2026
@armenzg armenzg changed the title Code review retries feat(code_review): Retry task up to five times Jan 26, 2026
@armenzg armenzg marked this pull request as ready for review January 26, 2026 21:52
@armenzg armenzg requested a review from a team as a code owner January 26, 2026 21:52
@armenzg armenzg merged commit 03680b5 into master Jan 27, 2026
69 checks passed
@armenzg armenzg deleted the cursor/CW-647-code-review-retries-a93c branch January 27, 2026 12:36
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>&nbsp;<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>
@github-actions github-actions bot locked and limited conversation to collaborators Feb 11, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Scope: Backend Automatically applied to PRs that change backend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants