You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I found that in the previous version of the SDK(vela cli 1.7), SuspendWorkflow() would only set run.Status.Suspend = true.
However, the new version of the SDK(vela 1.9) will set sub-step’s sub Phase to: v1alpha1.WorkflowStepPhaseSuspending. This could lead to the workflowrun Suspending state finally being set to state=Executing in Reconcile().
please tell me why? and how can i use utils.SuspendWorkflow() to stop my workflowrun?
Describe the bug
I found that in the previous version of the SDK(vela cli 1.7), SuspendWorkflow() would only set run.Status.Suspend = true.
However, the new version of the SDK(vela 1.9) will set sub-step’s sub Phase to: v1alpha1.WorkflowStepPhaseSuspending. This could lead to the workflowrun Suspending state finally being set to state=Executing in Reconcile().
please tell me why? and how can i use utils.SuspendWorkflow() to stop my workflowrun?
To Reproduce
my demo workflow yaml:
The following is the official source code call (workflow 0.6):
workflowrun cant not suspend
The following is my custom call based on the workflow source code of the previous version(workflow 0.4-):
workflowrun Suspend work
Expected behavior
Screenshots
Workflow Version
v0.6.0
Cluster information
Additional context
The text was updated successfully, but these errors were encountered: