Skip to content
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

Feature Request: Add ability to configure number of retries #1530

Open
Enquier opened this issue Nov 1, 2023 · 3 comments
Open

Feature Request: Add ability to configure number of retries #1530

Enquier opened this issue Nov 1, 2023 · 3 comments

Comments

@Enquier
Copy link

Enquier commented Nov 1, 2023

In the case where I want to check if a repository exists, it would make my runs more efficient if I could say try this once and fail. Could this be a simple feature to add?

@peterbe
Copy link
Contributor

peterbe commented Jan 24, 2024

Yeah! We just had a cryptic error that said:

Prepare all required actions
Getting action download info
Error: Forbidden

It came from a composite action which uses actions/checkout.
The thing is, we have a matrix in a top-level action that runs about 10 of these things in parallel. 1 of these 10 failed with this error. So we know the TOKEN is good. It must simply be a matter of unfortunate server problem. Just very unlucky.
Besides, when we press the "Re-run job" button it works.

So I'd love to see:

with:
  retries: 3

but I guess the config could be more advanced to let you control which types of errors it should retry on and potentially how to control backoff durations.

@peterbe
Copy link
Contributor

peterbe commented Jan 24, 2024

Hmm. Quickly skimming the code and some other issues, it appears there exists an underlying retry functionality. Perhaps it's only set up to retry on unexpected events. What we'd need is for it to retry on Forbidden errors too.

@shink
Copy link

shink commented Nov 14, 2024

Same issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants