forked from argoproj/argo-workflows
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add doc about failFast feature (argoproj#1453)
- Loading branch information
1 parent
65620ef
commit d28f547
Showing
2 changed files
with
51 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
apiVersion: argoproj.io/v1alpha1 | ||
kind: Workflow | ||
metadata: | ||
generateName: dag-primay-branch- | ||
spec: | ||
entrypoint: statis | ||
templates: | ||
- name: a | ||
container: | ||
image: docker/whalesay:latest | ||
command: [cowsay] | ||
args: ["hello world"] | ||
- name: b | ||
retryStrategy: | ||
limit: 2 | ||
container: | ||
image: alpine:latest | ||
command: [sh, -c] | ||
args: ["sleep 30; echo haha"] | ||
- name: c | ||
retryStrategy: | ||
limit: 3 | ||
container: | ||
image: alpine:latest | ||
command: [sh, -c] | ||
args: ["echo intentional failure; exit 2"] | ||
- name: d | ||
container: | ||
image: docker/whalesay:latest | ||
command: [cowsay] | ||
args: ["hello world"] | ||
- name: statis | ||
dag: | ||
failFast: false | ||
tasks: | ||
- name: A | ||
template: a | ||
- name: B | ||
dependencies: [A] | ||
template: b | ||
- name: C | ||
dependencies: [A] | ||
template: c | ||
- name: D | ||
dependencies: [B] | ||
template: d | ||
- name: E | ||
dependencies: [D] | ||
template: d |