kushthaker / doxa

doxa
1 stars 0 forks source link

GitHub API rate limiting #72

Open Callum-Mitchell opened 4 years ago

Callum-Mitchell commented 4 years ago

Like Slack, the GitHub API is subject to certain rate limits as follows:

Exceeding either rate limit will trigger an abuse detection system and block any further API requests until the limit is reset.

The Search API limit is our main concern, as certain jobs such as getting all comments by a user on all issues/PRs within each of their repositories may use more than 30 search requests.

A few potential ways to handle this:

The long-term solution will take some work/design tweaking. While we have only a few users (the three of us), simply delays are acceptable and are currently being used to avoid jobs being blocked, at the expense of some taking a few minutes to complete.

Callum-Mitchell commented 4 years ago

Quick and dirty solution is in place already. Long-term solution can be tackled after panel exam.