-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Closed
Labels
Description
Over the summer, github introduced secondary rate limits.
It'd probably make sense for PGH to have built-in support for those:
- mutation requests can now return a failure (403) with a
Retry-After
header, indicating how many seconds to wait - mutation requests should now be interspersed by at least one second
- the more complicated objects (those which trigger notifications e.g. prs, issues, comments, reviews, probably repos) are further restricted but with no indications
Would be nice if PGH could support these at least as an opt in e.g.
- opting into automatically retrying on 403 +
Retry-After
- opting into self-rate-limiting on mutation request (could be as simple as a
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) - opting into a more extensive rate limiting for the more complex class of objects
PeterJCLaw, nkakouros, NicoWeio, stephanschielke and Thunderforge