apiVersion: argoproj.io/v1alpha1 kind: Workflow metadata: generateName: pipeline-includes-two-steps-which-fail-randomly- spec: arguments: parameters: [] entrypoint: pipeline-includes-two-steps-which-fail-randomly serviceAccountName: pipeline-runner templates: - dag: tasks: - name: random-failure template: random-failure - name: random-failure-2 template: random-failure-2 name: pipeline-includes-two-steps-which-fail-randomly - container: args: - import random; import sys; exit_code = random.choice([0,1,2,3]); print(exit_code); sys.exit(exit_code) command: - python - -c image: python:alpine3.6 name: random-failure outputs: artifacts: - name: mlpipeline-ui-metadata path: /mlpipeline-ui-metadata.json optional: true - name: mlpipeline-metrics path: /mlpipeline-metrics.json optional: true retryStrategy: limit: 100 - container: args: - import random; import sys; exit_code = random.choice([0,1]); print(exit_code); sys.exit(exit_code) command: - python - -c image: python:alpine3.6 name: random-failure-2 outputs: artifacts: - name: mlpipeline-ui-metadata path: /mlpipeline-ui-metadata.json optional: true - name: mlpipeline-metrics path: /mlpipeline-metrics.json optional: true retryStrategy: limit: 50