Skip to content

chore(iswf): Updates deletion and remaining task decorators to taskbroker retries#115029

Merged
GabeVillalobos merged 5 commits intomasterfrom
gv/remove-retry-decorators-from-core-tasks
May 7, 2026
Merged

chore(iswf): Updates deletion and remaining task decorators to taskbroker retries#115029
GabeVillalobos merged 5 commits intomasterfrom
gv/remove-retry-decorators-from-core-tasks

Conversation

@GabeVillalobos
Copy link
Copy Markdown
Member

@GabeVillalobos GabeVillalobos commented May 6, 2026

Continuing the work of #114937, this PR removes more of the old @retry decorators from tasks, updating them to their closest equivalent in Taskbroker.

@GabeVillalobos GabeVillalobos requested review from a team as code owners May 6, 2026 22:15
@github-actions github-actions Bot added the Scope: Backend Automatically applied to PRs that change backend components label May 6, 2026
processing_deadline_duration=60 * 20,
retry=Retry(
on=(RetryTask,),
on=(Exception,),
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Dead RetryTask class after retry migration

Low Severity

The RetryTask exception class is now unused dead code. It was previously referenced in Retry(on=(RetryTask,)), but this change replaced that with Retry(on=(Exception,)). The class definition remains, and the TODO comment on line 145 — "raise RetryTask when appropriate" — is now stale and misleading, since with on=(Exception,) there's no reason to raise a specific RetryTask subclass for retry purposes.

Additional Locations (1)
Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 2a171e2. Configure here.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

The module local RetryTask does look unused.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I'll remove that in a follow up 😁

processing_deadline_duration=60 * 20,
retry=Retry(
on=(RetryTask,),
on=(Exception,),
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

The module local RetryTask does look unused.

Copy link
Copy Markdown
Contributor

@cursor cursor Bot left a comment

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

There are 2 total unresolved issues (including 1 from previous review).

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 799d45c. Configure here.

retry=Retry(times=3, delay=60, on=(Commit.DoesNotExist,)),
processing_deadline_duration=60,
silo_mode=SiloMode.CELL,
silenced_exceptions=(Commit.DoesNotExist,),
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Retry only on DoesNotExist silently discards all other errors

Medium Severity

The Retry(on=(Commit.DoesNotExist,)) combined with silenced_exceptions=(Commit.DoesNotExist,) means that Commit.DoesNotExist is both retried AND silenced from Sentry. If all retries are exhausted and the commit still doesn't exist, the final failure will never be reported to Sentry, making permanent failures completely invisible. The old on_silent in the @retry decorator only suppressed reporting during retry attempts — the final RetryTaskError after exhaustion could still surface. Now there's no visibility into cases where a commit permanently doesn't exist after all retries.

Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 799d45c. Configure here.

@GabeVillalobos GabeVillalobos merged commit 72c8fb2 into master May 7, 2026
71 checks passed
@GabeVillalobos GabeVillalobos deleted the gv/remove-retry-decorators-from-core-tasks branch May 7, 2026 19:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Backend Automatically applied to PRs that change backend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants