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: ensure workflowtaskresults complete before mark workflow complet…
…ed status. Fixes: argoproj#12615 (argoproj#12574) Signed-off-by: shuangkun <[email protected]>
- Loading branch information
Showing
4 changed files
with
384 additions
and
34 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,65 @@ | ||
apiVersion: argoproj.io/v1alpha1 | ||
kind: Workflow | ||
metadata: | ||
generateName: wf-retry-stopped- | ||
spec: | ||
workflowMetadata: | ||
labels: | ||
workflows.argoproj.io/test: "true" | ||
workflows.argoproj.io/workflow: "wf-retry-stopped" | ||
entrypoint: wf-retry-stopped-main | ||
serviceAccountName: argo | ||
executor: | ||
serviceAccountName: default | ||
templates: | ||
- name: wf-retry-stopped-main | ||
steps: | ||
- - name: create | ||
template: create | ||
- name: sleep | ||
template: sleep | ||
- name: stop | ||
template: stop | ||
|
||
- name: sleep | ||
container: | ||
image: alpine:latest | ||
command: [ sleep, "10" ] | ||
|
||
- name: stop | ||
container: | ||
image: quay.io/argoproj/argocli:latest | ||
args: | ||
- stop | ||
- -l | ||
- workflows.argoproj.io/workflow=wf-retry-stopped | ||
- --namespace=argo | ||
- --loglevel=debug | ||
|
||
- name: create | ||
container: | ||
image: argoproj/argosay:v2 | ||
command: | ||
- sh | ||
- -c | ||
args: | ||
- | | ||
echo "hello world" > /tmp/message | ||
sleep 999 | ||
outputs: | ||
artifacts: | ||
- name: my-artifact | ||
path: /tmp/message | ||
s3: | ||
key: my-artifact | ||
bucket: my-bucket | ||
endpoint: minio:9000 | ||
insecure: true | ||
accessKeySecret: | ||
name: my-minio-cred | ||
key: accesskey | ||
secretKeySecret: | ||
name: my-minio-cred | ||
key: secretkey | ||
archive: | ||
none: {} |
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.