Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

resume or stop completed workflow should throw exception #8173

Open
2 of 3 tasks
Colstuwjx opened this issue Mar 17, 2022 · 2 comments
Open
2 of 3 tasks

resume or stop completed workflow should throw exception #8173

Colstuwjx opened this issue Mar 17, 2022 · 2 comments
Labels
area/api Argo Server API area/suspend-resume Suspending and resuming workflows type/feature Feature request

Comments

@Colstuwjx
Copy link

Checklist

  • Double-checked my configuration.
  • Tested using the latest version.
  • Used the Emissary executor.

Summary

What happened/what you expected to happen?

Happened: when I called argo workflow resume and stop api towards a completed workflow, it didn't panic, and if I turn to call it with suspend or retry, it would complains sth like:

workflow must be Failed/Error to retry
timed out waiting for the condition: cannot suspend completed workflows

Expected: we should also throw exception while we resume or stop a completed workflow.

What version are you running?

v3.2.7

Diagnostics

Paste the smallest workflow that reproduces the bug. We must be able to run the workflow.

# Logs from the workflow controller:
kubectl logs -n argo deploy/workflow-controller | grep ${workflow} 

# If the workflow's pods have not been created, you can skip the rest of the diagnostics.

# The workflow's pods that are problematic:
kubectl get pod -o yaml -l workflows.argoproj.io/workflow=${workflow},workflow.argoproj.io/phase!=Succeeded

# Logs from in your workflow's wait container, something like:
kubectl logs -c wait -l workflows.argoproj.io/workflow=${workflow},workflow.argoproj.io/phase!=Succeeded

Message from the maintainers:

Impacted by this bug? Give it a 👍. We prioritise the issues with the most 👍.

@alexec alexec added the area/suspend-resume Suspending and resuming workflows label Mar 17, 2022
@alexec
Copy link
Contributor

alexec commented Mar 17, 2022

Do you mean, when you resume/stop a workflow that is complete via the Argo Server API, you get 200 OK.

@whynowy whynowy added type/feature Feature request and removed type/bug triage labels Mar 17, 2022
@Colstuwjx
Copy link
Author

Colstuwjx commented Mar 18, 2022

Yes, I think we should return error in these two cases, same to retry and suspend.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/api Argo Server API area/suspend-resume Suspending and resuming workflows type/feature Feature request
Projects
None yet
Development

No branches or pull requests

4 participants