-
Notifications
You must be signed in to change notification settings - Fork 238
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to prevent hitting API call rate limit #76
Comments
There is not. Pull requests welcome. |
The API rate limit is 5000 HTTP requests per hour (not minutes as said above). Let's say we want to backup issues. The theoritical limit is
So we could artificially set a timer with one request per second and we would be safe. python-github-backup/bin/github-backup Lines 453 to 454 in fac8e42
python-github-backup/bin/github-backup Lines 409 to 451 in fac8e42
There is also this piece of code which use rate limiting but only in case there's already an error. python-github-backup/bin/github-backup Lines 505 to 534 in fac8e42
The strategy could be slightly different.
|
I've created a very simple throttling approach in #149. |
My organization has a lot of GitHub data that we want to perform nightly backups of to a Drobo. I have been attempting to use this program to build it out, but I keep hitting the API rate limit, which times out the request for an increasing amount of time. Is there a way to tell the program to limit it's requests so that the data coming in is steady but not hitting the 5000 requests per minute threshold?
The text was updated successfully, but these errors were encountered: