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

Restart job at workflow level #1578

Closed
huikang opened this issue Aug 22, 2019 · 8 comments
Closed

Restart job at workflow level #1578

huikang opened this issue Aug 22, 2019 · 8 comments
Labels
type/feature Feature request

Comments

@huikang
Copy link
Member

huikang commented Aug 22, 2019

I have an argo workflow that is triggered through argo-event, If anyone of the steps in the workflow failed, how could the workflow be retried automatically. Is there any way to setup a retry strategy at the workflow level? Thanks.

https://argoproj.slack.com/archives/C8J6SGN12/p1566439599263600

@sarabala1979 sarabala1979 added the type/feature Feature request label Aug 22, 2019
@dtaniwaki
Copy link
Member

I think this feature is very useful for me too. May I implement it?

@dtaniwaki
Copy link
Member

How about allowing retryStrategy in templates other than container templates?

apiVersion: argoproj.io/v1alpha1
kind: Workflow
metadata:
  generateName: workflow-template-retry-workflow-
spec:
  entrypoint: retry-workflow
  templates:
  - name: random-fail-template
    container:
      image: python:alpine3.6
      command: [python, -c]
      # fail with a 66% probability
      args: ["import random; import sys; exit_code = random.choice([0, 1, 1]); sys.exit(exit_code)"]
  - name: retry-workflow
    template: steps
    retryStrategy:
      limit: 10
  - name: steps
    steps:
    - - name: hello1
        template: random-fail-template
    - - name: hello2a
        template: random-fail-template
      - name: hello2b
        template: random-fail-template

@epa095
Copy link
Contributor

epa095 commented Sep 3, 2019

@dtaniwaki that would be good yes, there is really no reason not to allow retrying on other template-types than container. I previously made an issue for retrying resource-templates (#1370), but it holds for all template types really.

@nicorikken
Copy link

Restarting workflows is a feature in v2.5.0.

@simster7
Copy link
Member

Closing

@huikang
Copy link
Member Author

huikang commented Mar 31, 2020

@nicorikken , @simster7 , where can I find the example to retry the whole workflow pipeline if one step fails? I searched, but only find examples about retrying one step. Thanks.

@simster7
Copy link
Member

This issue was closed on error, the feature has not been implemented

@alexec
Copy link
Contributor

alexec commented Sep 29, 2020

Fixed in v2.12

@alexec alexec closed this as completed Sep 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/feature Feature request
Projects
None yet
Development

No branches or pull requests

7 participants