Skip to content

Conversation

@wa0x6e
Copy link
Contributor

@wa0x6e wa0x6e commented Oct 13, 2025

Requiring snapshot-labs/overlord#23
Closing snapshot-labs/overlord#22

This PR will handle 429 error from overlord:

  • Proposals with 429 response will not be saved with CB -11 in the database anymore, and will be skipped
  • If error 429 is detected, it will sleep for 1min before continuing on the next loop

This logic will auto-retry 429 errors

- Add custom RateLimitError class for rate limit detection
- Switch from Promise.all to Promise.allSettled to process all requests
- Save successful results even when rate limit is hit
- Sleep for 1 minute when 429 error is detected before retrying
- Failed proposals remain in pending state for next batch

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
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