-
-
Notifications
You must be signed in to change notification settings - Fork 183
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Retry if github returns 403 rate limit warning #150
Comments
This is annoying, thanks for raising this. Problematic is that 403 means "Forbidden", which is not retryable. But the type of exception seems to give a good indication that this is something to retry later. Let me try to sketch out a solution. |
@jaqx0r it would we interesting to understand what caused the rate limit exceeded in the first place? Do you see this issue regularily? Is this caused by the rate limit of your token or by the abuse rate limit. The exception message implies the latter. Maybe in addition retrying those exceptions with some backoff, the action should also throttle down its requests in general to avoid the abuse rate limit. Maybe this is caused by other actions using the same toking as they run in the same workflow. |
The action sends requests to GitHub API as quickly as possible. This seems to trigger the abuse rate limit which caused the exception in the first place. I have added a throttling so that Please test this fix by using:
Please let me know if the default throttling settings are still insufficient to avoid abuse rate limits. I agree that the above exception should be retried, but that should also be done by the PyGitHub client, as there is already code that identifies that situation, as well as urllib already considering |
Released with latest v1 release v1.19:
|
Thanks!
…On Thu, 8 Jul 2021, 01:18 Enrico Minack, ***@***.***> wrote:
Released with latest v1 release v1.19:
uses: ***@***.***
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#150 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAXFX65MNOBP5BL2LGU5GMLTWRV45ANCNFSM47WE52ZA>
.
|
This seems to be happening still in 2.4.2, but probably because we are running many of these publish-unit-test-result-actions in parallel. Backoff/retry logic for 403s would be really helpful. @EnricoMi any chance that was considered, or any chance its easy to implement? |
Can you share some logs please? |
This comment retracted; I realised I was running an older version. |
Please implement a backoff-and-retry when GitHub returns a 403 error.
As seen in https://github.com/google/mtail/runs/2969598960?check_suite_focus=true
The text was updated successfully, but these errors were encountered: