Skydio / revup

Effortlessly create and manage pull requests without changing branches. Powers a stacked diffs workflow with python and git "plumbing" commands.
https://github.com/Skydio/revup
MIT License
317 stars 67 forks source link

Github API timeouts when uploading more than 10 reviews #1

Closed jerry-skydio closed 8 months ago

jerry-skydio commented 2 years ago

When uploading more than 10 reviews, especially if creating or updating a large number, we occasionally see one of the mutation requests time out. This can usually be resolved by just rerunning the command, as a portion of the requests will have succeeded, making the remainder less likely to time out.

Leaving this open to investigate a revup side fix or ask for github support / clarification.

vlsi commented 2 years ago

The best practice is making one second pauses between the requests: https://docs.github.com/en/rest/guides/best-practices-for-integrators#dealing-with-secondary-rate-limits

If you're making a large number of POST, PATCH, PUT, or DELETE requests for a single user or client ID, wait at least one second between each request.