cancelWorkflow
Served by: workflow
Arguments
Section titled “Arguments”| Name | Type |
|---|---|
input |
CancelWorkflowInput! |
Returns
Section titled “Returns”Example
Section titled “Example”Requests graceful cancellation of a running workflow execution. The target workflow receives a cancellation signal on its context and can run cleanup before terminating. Returns once the cancel request has been accepted by Temporal (not when the workflow has actually terminated).
mutation CancelWorkflow($input: CancelWorkflowInput!) { cancelWorkflow(input: $input) { workflowID workflowRunID }}Variables
{ "input": { "workflowID": "<workflow execution ID>", "workflowRunID": "<run ID>" }}