Skip to content

fix(rot): wait out a rate limit instead of aborting the weekly check - #561

Merged
jamesconwaydev merged 1 commit into
mainfrom
fix/rot-wait-out-rate-limit
Nov 18, 2026
Merged

jamesconwaydev merged 1 commit into
mainfrom
fix/rot-wait-out-rate-limit

Conversation

@jamesconwaydev

Copy link
Copy Markdown
Collaborator

At 5-10 REST calls per entry, the Monday health check outruns the 5,000/hour budget somewhere past 700 entries (455 today). The client waits at most 600 s, then raises RateLimited, which aborted rot plan wholesale; the sweep retries at most daily.

prepare now sleeps until the reset and retries that entry once. A reset more than an hour away, or a second limit on the same entry, still aborts with nothing written. The job's 120-minute timeout bounds the total.

Tests: new cases for wait-then-retry and the over-an-hour abort; the existing abort test still holds. 625 OK.

At 5-10 REST calls per entry, the Monday check outruns the 5,000/hour
budget somewhere past 700 entries. The client waits at most 600 s and
then raises RateLimited, which aborted the whole plan every week.

prepare now sleeps until the reset and retries that entry once. A
reset more than an hour away, or a second limit on the same entry,
still aborts, and the job's 120-minute timeout bounds the rest.
@jamesconwaydev
jamesconwaydev merged commit ad50356 into main Nov 18, 2026
10 checks passed
@jamesconwaydev
jamesconwaydev deleted the fix/rot-wait-out-rate-limit branch November 18, 2026 15:31
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