Replies: 2 comments
-
Can you use enhanced depends along with |
Beta Was this translation helpful? Give feedback.
0 replies
-
Thanks for your quick reply! Unfortunately this does not work for me. I have a step that returns exit code 11 every now and then, which is correct. From your link:
Here is a small excerpt from the workflow: - name: step3-dump
depends: step1-prepare
templateRef:
name: dump-template
template: dump
- name: handle-exit-code
depends: step3-dump.Failed
templateRef:
name: handle-exit-code-template
template: handle-exit-code
when: "{{tasks.step3-dump.exitCode}} == 11"
- name: step4-rsync
depends: "step3-dump"
templateRef:
name: rsync-template
template: rsync
when: "{{tasks.step3-dump.exitCode}} == 0" The last step is "Succeeded" and the workflow is running perfectly. But unfortunately the workflow is always displayed as failed. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is there a way to mark a workflow run as "Succeeded", even if a step in the workflow has failed?
I use a dag workflow that executes different steps depending on the exit code (like
when: "{{tasks.step3-dump.exitCode}} == 11"
).The behavior is absolutely correct. However, the entire workflow is always displayed as "Failed".
Because I use
depends
to control the workflow, I cannot usecontinueOn
.Does anyone have an idea?
Beta Was this translation helpful? Give feedback.
All reactions