-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New Feature: provide failFast flag, allow a DAG to run all branches o…
…f the DAG (either success or failure) (#1443) * Fix bug: dag will missing some nodes when another branch node fails * Add test file * New Feature: provide failFast flag, allow a DAG to run all branches of the DAG (either success or failure) * Move failFast flag to DAG template spec * * Move test case file to test/e2e/expectedfailures since it is expected to fail * Remove unused check code
- Loading branch information
1 parent
b9b87b7
commit 7a21adf
Showing
9 changed files
with
362 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
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,48 @@ | ||
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: | ||
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 |
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
Oops, something went wrong.