chore(iswf): Updates deletion and remaining task decorators to taskbroker retries#115029
Conversation
| processing_deadline_duration=60 * 20, | ||
| retry=Retry( | ||
| on=(RetryTask,), | ||
| on=(Exception,), |
There was a problem hiding this comment.
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)
Reviewed by Cursor Bugbot for commit 2a171e2. Configure here.
There was a problem hiding this comment.
The module local RetryTask does look unused.
There was a problem hiding this comment.
I'll remove that in a follow up 😁
| processing_deadline_duration=60 * 20, | ||
| retry=Retry( | ||
| on=(RetryTask,), | ||
| on=(Exception,), |
There was a problem hiding this comment.
The module local RetryTask does look unused.
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
There are 2 total unresolved issues (including 1 from previous review).
❌ 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,), |
There was a problem hiding this comment.
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.
Reviewed by Cursor Bugbot for commit 799d45c. Configure here.


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