-
Notifications
You must be signed in to change notification settings - Fork 7
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
track remained x-rate-limit in github api client and degrade gracefully when limits are about to be hit #64
Comments
According to GitHub API documentation, there are different types of API scopes with different limits, RestGithubApiClient hits only one which has a limit of 5000 requests per hour. I think it is possible to add interceptor to HttpClient which track |
I had two different ideas on my mind:
additionally, on both cases keep track of rate limits before launch and then:
Since limits reset every hour it might take very long time (up to hour, which seems unreasonably long time to wait)
for now - we basically can't do that, because process re-creates on every launch
have any ideas? |
Instead of making thousands of calls make a single to GraphQL API, but I haven't checked if it is possible to join all necessary criteria. Please see related PR. |
But it will have limits as well, so even if graphql implementation would be able to fetch issues for 120% amount of repositories, the problem is still here
yes, that's correct point, but I think it should be forced as an administrative requirement - |
contributions welcome for supporting rate limit check https://developer.github.com/v3/rate_limit/
The text was updated successfully, but these errors were encountered: