Skip to content

implement pause between mutations #232

@ericphanson

Description

@ericphanson

If you are making a large number of POST, PATCH, PUT, or DELETE requests, wait at least one second between each request. This will help you avoid secondary rate limits.

https://docs.github.com/en/rest/using-the-rest-api/best-practices-for-using-the-rest-api?apiVersion=2022-11-28#pause-between-mutative-requests

We could implement this by saving the last timestamp of a POST, PATCH, PUT, or DELETE in a global variable, then checking/delaying/updating it when making a new POST, PATCH, PUT, or DELETE request (atomically).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions