circus/crates/common
NotAShelf 92844d302e
fc-common: properly implement GitHub API rate limiting; cleanup
More or less mimics Hydra's `GithubStatus.pm` adaptive throttling:

- Log rate limit status when remaining <= 2000
- Sleep when remaining <= 1000

Adaptive delay spreads requests over reset window. Rate limits are
extracted from *every response* for better accuracy. Accuracy is
*critical* because the primary failure is to get rate limited more
often due to miscalculation.

Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I3b1fa444c937715c604002d71510bcf76a6a6964
2026-02-28 23:58:41 +03:00
..
migrations fc-common: use btree index for build_outputs.path in db schema 2026-02-28 23:56:24 +03:00
src fc-common: properly implement GitHub API rate limiting; cleanup 2026-02-28 23:58:41 +03:00
tests fc-common: GitHub rate limit state extraction 2026-02-28 23:58:40 +03:00
Cargo.toml fc-common: add unsupported_timeout for queue runner 2026-02-28 23:58:38 +03:00