Skip to content

Support for secondary and additional rate limits #2113

@xmo-odoo

Description

@xmo-odoo

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, since False == 0 and True == 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions