Terminate Workflow
Terminates a running workflow. A reason must be provided that is captured as the termination reason for the workflow.
Input Payload
Attribute | Description |
---|---|
workflowId | The unique identifier of the workflow to be terminated. |
API Endpoint
DELETE /workflow/{workflowId}
Client SDK Methods
- Java
- Go
- Python
- C#
- JavaScript
- Typescript
- Clojure
void terminateWorkflow(String workflowId, String reason)
func (e *WorkflowExecutor) Terminate(workflowId string, reason string) error
WorkflowResourceApi.terminate1(self, workflow_id, **kwargs)
void WorkflowResourceApi.Terminate(string workflowId, string reason = null, bool? triggerFailureWorkflow = null)
WorkflowExecutor.terminate(
workflowId: string,
reason: string,
): CancelablePromise<any>
WorkflowExecutor.terminate(
workflowId: string,
reason: string,
): CancelablePromise<any>
(workflow-resource/terminate-workflow [options workflow-id & args])