Skip to content

Add rate-limit retry with exponential backoff to all scripts#34

Merged
DaLuSt merged 1 commit intomainfrom
claude/add-rate-limit-retry-7Wp79
Feb 27, 2026
Merged

Add rate-limit retry with exponential backoff to all scripts#34
DaLuSt merged 1 commit intomainfrom
claude/add-rate-limit-retry-7Wp79

Conversation

@DaLuSt
Copy link
Copy Markdown
Owner

@DaLuSt DaLuSt commented Feb 27, 2026

All edit() and delete() PRAW calls are now wrapped in _with_retry(), which catches prawcore.exceptions.TooManyRequests and retries up to 3 times with waits of 5s, 15s, and 45s (honouring retry_after when provided by the API). Affects commentCleaner.py, PostCleaner.py, weekly_cleanup.py, and web/app.py.

https://claude.ai/code/session_014HLhrFtCVRFnEyfRexiy3d

All edit() and delete() PRAW calls are now wrapped in _with_retry(),
which catches prawcore.exceptions.TooManyRequests and retries up to
3 times with waits of 5s, 15s, and 45s (honouring retry_after when
provided by the API). Affects commentCleaner.py, PostCleaner.py,
weekly_cleanup.py, and web/app.py.

https://claude.ai/code/session_014HLhrFtCVRFnEyfRexiy3d
@DaLuSt DaLuSt merged commit 7d7baf2 into main Feb 27, 2026
4 checks passed
@DaLuSt DaLuSt deleted the claude/add-rate-limit-retry-7Wp79 branch February 27, 2026 16:16
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.

2 participants