Skip to content

Update zulipbot to deal with rate limits.#255

Open
greedy-wudpeckr wants to merge 2 commits intozulip:mainfrom
greedy-wudpeckr:fix-limit
Open

Update zulipbot to deal with rate limits.#255
greedy-wudpeckr wants to merge 2 commits intozulip:mainfrom
greedy-wudpeckr:fix-limit

Conversation

@greedy-wudpeckr
Copy link
Copy Markdown
Collaborator

Summary

Implements comprehensive rate limit handling to prevent the bot from exceeding GitHub's API quota (5000 requests/hour), which was causing it to miss events and fail operations

Fixes #241

Problem

The bot was consuming its entire API quota within an hour due to:

  • Repeated API calls for the same data (issues, labels, collaborators)
  • No throttling or backoff on requests
  • Missing error handling for rate limit responses
  • No visibility into quota consumption
  • This caused the bot to hit 429 Too Many Requests errors and miss webhook events.

Signed-off-by: greedy-wudpeckr <mudituiet@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update zulipbot to deal with rate limits that cause it to miss events.

2 participants