Skip to content

Conversation

@trevor-e
Copy link
Member

Summary

  • Remove retry configuration from create_preprod_status_check_task that only retried on ApiRateLimitedError with 60-second delays
  • GitHub rate limits use fixed hourly windows, so retrying at 60s intervals cannot succeed (the limit won't reset until the x-ratelimit-reset timestamp, up to 1 hour later)
  • This eliminates wasted compute cycles on retries that have no chance of success

Test plan

  • Existing tests pass (tests/sentry/preprod/vcs/status_checks/size/test_status_checks_tasks.py)
  • Rate limit errors still raised correctly (not swallowed)

The retry configuration only retried on `ApiRateLimitedError` with 60-second
delays, but GitHub rate limits use fixed hourly windows. Retrying at 60s
intervals cannot succeed because the rate limit won't reset until the
`x-ratelimit-reset` timestamp (up to 1 hour later).

Removing this retry logic eliminates wasted compute cycles on retries that
have no chance of success.
@trevor-e trevor-e requested a review from a team as a code owner January 29, 2026 22:28
@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Jan 29, 2026
@trevor-e trevor-e merged commit a84351d into master Jan 30, 2026
71 checks passed
@trevor-e trevor-e deleted the telkins/lower-size-analysis-retry-count branch January 30, 2026 15:18
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.

3 participants