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

Add retry feature #1540

Open
birdayz opened this issue Mar 8, 2024 · 1 comment
Open

Add retry feature #1540

birdayz opened this issue Mar 8, 2024 · 1 comment

Comments

@birdayz
Copy link

birdayz commented Mar 8, 2024

Make commands retryable:

...
tasks:
  build:
    retry:
      attempts: 3
      exit_codes:
        - 1
        - 127
    cmds:
     ...

If exit_codes is provided, only the provided exit codes are retryable. otherwise, all exit code are retried.

I have a use case, where a task runs many other tasks via deps. One of them fails, it all fails. In the end, CI retrys the entire task invocation, which will again run all of these parallel tasks. However, it would be much better to only retry the individual task that fails.
I can do the retry within the cmd, but that's not very elegant and re-usable i feel.

@task-bot task-bot added the state: needs triage Waiting to be triaged by a maintainer. label Mar 8, 2024
@danilobuerger
Copy link
Contributor

Best case, this should also include a delay.

@pd93 pd93 added type: feature A new feature or functionality. and removed state: needs triage Waiting to be triaged by a maintainer. labels Jul 1, 2024
@pd93 pd93 removed the type: feature A new feature or functionality. label Dec 16, 2024
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

4 participants