forked from argoproj/argo-workflows
-
Notifications
You must be signed in to change notification settings - Fork 0
/
retry-with-steps.yaml
41 lines (40 loc) · 1011 Bytes
/
retry-with-steps.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# This example demonstrates the use of retries with steps.
# It uses the `random-fail` container. For more details, see
# https://github.com/shrinandj/random-fail
apiVersion: argoproj.io/v1alpha1
kind: Workflow
metadata:
generateName: retry-with-steps-
spec:
entrypoint: hello-hello-hello
templates:
- name: hello-hello-hello
steps:
- - name: hello1
template: random-fail
arguments:
parameters:
- name: failPct
value: "0"
- - name: hello2a
template: random-fail
arguments:
parameters:
- name: failPct
value: "0"
- name: hello2b
template: random-fail
arguments:
parameters:
- name: failPct
value: "0"
- name: random-fail
inputs:
parameters:
- name: failPct
retryStrategy:
limit: 4
container:
image: shrinand/random-fail
command: ["python"]
args: ["/run.py", "{{inputs.parameters.failPct}}"]