fix(http): fail fast on GitHub API rate limit instead of hanging#1120
fix(http): fail fast on GitHub API rate limit instead of hanging#1120LalatenduMohanty wants to merge 1 commit intopython-wheel-build:mainfrom
Conversation
|
Warning Rate limit exceeded
To continue reviewing without waiting, purchase usage credits in the billing tab. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Raise GitHubRateLimitError immediately when the rate limit reset is more than 120 seconds away, instead of sleeping 300s per retry for up to ~40 minutes. The error message suggests setting GITHUB_TOKEN. Closes: python-wheel-build#1118 Co-Authored-By: Claude <claude@anthropic.com> Signed-off-by: Lalatendu Mohanty <lmohanty@redhat.com>
b27bf14 to
d9ad52b
Compare
Summary
GitHubRateLimitErrorexception that raises immediately when the GitHub API rate limit reset is more than 120 seconds away, instead of sleeping 300s per retry for up to ~40 minutesGITHUB_TOKENto increase the limit from 60 to 5000 requests/hourCloses: #1118