Skip to content

Stop ingest on rate limit instead of hammering doomed requests#8

Merged
kwsantiago merged 1 commit into
mainfrom
ingest-stop-on-ratelimit
Jul 13, 2026
Merged

Stop ingest on rate limit instead of hammering doomed requests#8
kwsantiago merged 1 commit into
mainfrom
ingest-stop-on-ratelimit

Conversation

@kwsantiago

Copy link
Copy Markdown
Contributor

With no PAT, the deploy uses the built-in token (1000/hr), which the ~900-PR spec ingest exceeds. The loops caught RateLimited per-PR and kept going, firing hundreds of doomed 403s and making each deploy take 10+ minutes.

Now both ingest loops stop as soon as they hit the limit and keep cached status for the rest. The Knots view is built first (fresh budget, ~150 calls) so it still gets fresh data; the spec is best-effort. Deploys finish fast.

@kwsantiago kwsantiago merged commit eda9a96 into main Jul 13, 2026
1 check passed
@kwsantiago kwsantiago deleted the ingest-stop-on-ratelimit branch July 13, 2026 22:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant