Skip to content

fix-worker-429#20625

Draft
harshang03 wants to merge 2 commits intoPrefectHQ:mainfrom
harshang03:fix-20488-worker-429
Draft

fix-worker-429#20625
harshang03 wants to merge 2 commits intoPrefectHQ:mainfrom
harshang03:fix-20488-worker-429

Conversation

@harshang03
Copy link

This PR hardens worker submission against Prefect Cloud rate limiting. When a 429 is encountered while fetching a deployment, the worker now backs off with jitter (respecting Retry-After when present), retries up to the configured limit, and then defers the submission without crashing the worker. It also improves retry-after parsing on PrefectHTTPStatusError and keeps deployment reads resilient to HTTP errors.
closes #20488

Checklist

  • This pull request references any related issue by including "closes <link to issue>"
    • If no issue exists and your change is not a small fix, please create an issue first.
  • If this pull request adds new functionality, it includes unit tests that cover the changes
  • If this pull request removes docs files, it includes redirect settings in mint.json.
  • If this pull request adds functions or classes, it includes helpful docstrings.

@harshang03 harshang03 marked this pull request as draft February 10, 2026 18:31
@github-actions github-actions bot added the bug Something isn't working label Feb 10, 2026
@codspeed-hq
Copy link

codspeed-hq bot commented Feb 10, 2026

Merging this PR will not alter performance

✅ 2 untouched benchmarks


Comparing harshang03:fix-20488-worker-429 (2ef41cc) with main (3457693)

Open in CodSpeed

@github-actions
Copy link
Contributor

This pull request is stale because it has been open 14 days with no activity. To keep this pull request open remove stale label or comment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working status:stale

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Receiving a 429 Too Many Requests from Prefect Cloud crashes the worker instead of handling gracefully

1 participant