argo-workflows
argo-workflows copied to clipboard
argo terminate marks task as Succeeded instead of Failed
Checklist
- [ ] Double-checked my configuration.
- [ ] Tested using the latest version.
- [ ] Used the Emissary executor.
Summary
What happened/what you expected to happen?
- When running
argo terminate
on a running workflow, it properly terminates the workflow, but marks the task asSucceeded
. I would expect the workflow to be marked asFailed
.
What version are you running?
- Operator:
v3.3.8
- ArgoCLI:
v3.1.0-rc13
Diagnostics
- Launch a workflow
- While it is still running, call argo terminate on the workflow
- The workflow will be marked as succeeded
Message from the maintainers:
Impacted by this bug? Give it a 👍. We prioritise the issues with the most 👍.
Could you check if your step is a retried step? Also what's the status of the previous step? Any reproducible example and
relevant controller logs? Could you run kubectl get wf <wf-name> -o yaml
?
Hey @terrytangyuan - I'm not quite sure how to reproduce the issue. The pod was in a pending state when I saw the bug occur, but it seems to work as expected when the pods are in a running state.
I have the same problem, but I don't now how reproduce the issue.
My problem is, that when I Terminate a workflow sometimes the workflow pipeline is marked as success but see the pipeline in UI and I see that all next steps to pipeline since that I terminated workflow are omitted and marked as success.
In this picture it can see that problem. I terminated workflow in install_dependencies, however all next steps are marked success immediately
@DiegoFlop can you provide the version of Argo Workflows the operator is running and the version of Argo Workflow CLI you are using?
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If this is a mentoring request, please provide an update here. Thank you for your contributions.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If this is a mentoring request, please provide an update here. Thank you for your contributions.
This issue has been closed due to inactivity. Feel free to re-open if you still encounter this issue.