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.
Fix failFast bug: When a node in the middle fails, the entire workflo…
…w will hang (argoproj#1468)
- Loading branch information
1 parent
7235ac1
commit b48d650
Showing
2 changed files
with
86 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
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: alpine:latest | ||
command: [sh, -c] | ||
args: ["echo intentional failure; exit 2"] | ||
- name: e | ||
container: | ||
image: alpine:latest | ||
command: [sh, -c] | ||
args: ["sleep 30; echo haha"] | ||
- 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: e |
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