-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Support for secondary and additional rate limits #2113
Comments
related: #2127 |
I think PyGithub should throttle all requests so that rate limit errors are avoided in the first place (#1989). If they occur, they should be retried while respecting And this is where things get complicated:
What I do is create a GitHub instance with a bespoke
|
"Mitigated" is probably a better qualifier: because github publishes no guidance on notification-triggering operations, can change the rate limiting at any moment, and provides no |
"Mitigate" is a better word indeed as we cannot avoid the RateLimitExceededExceptions: #2145 |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Hitting this error. Is this slated for a fix? |
Over the summer, github introduced secondary rate limits.
It'd probably make sense for PGH to have built-in support for those:
Retry-After
header, indicating how many seconds to waitWould be nice if PGH could support these at least as an opt in e.g.
Retry-After
delay_mutation=False
which would be used as a number of seconds since the last mutation query, sinceFalse == 0
andTrue == 1
that could directly be interpreted as seconds and would further allow users to tune the rate-limiting more finely)The text was updated successfully, but these errors were encountered: