sanitizers / octomachinery

🤖 Invisible engine driving octobot machines. Simple, yet powerful. [DEMO BOT @ https://github.com/sanitizers/chronographer-github-app] | [tutorial @ https://tutorial.octomachinery.dev] | [docs @ https://docs.octomachinery.dev] | official web-site is at -->
https://octomachinery.dev
GNU General Public License v3.0
56 stars 12 forks source link

[TODO] Implement client-side rate-limited queue (throttle or burst HTTP requests to GitHub API) #2

Open webknjaz opened 5 years ago

webknjaz commented 5 years ago

Some kind of a leaky bucket seems to be appropriate here. It should take into account the overall rate limit, remaining rate limit and retry-after reported by GitHub API.

Prior art:

Fund with Polar

webknjaz commented 4 years ago

Ref: https://github.com/octokit/plugin-throttling.js

webknjaz commented 2 years ago

https://github.com/chdsbd/kodiak/blob/0de6ed7/bot/kodiak/throttle.py

webknjaz commented 2 years ago

https://github.com/chdsbd/kodiak/pull/196

webknjaz commented 2 years ago

https://github.com/chdsbd/kodiak/pull/70