Skip to content

cancelWorkflow

Served by: workflow

Name Type
input CancelWorkflowInput!

CancelWorkflowPayload!

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>"
}
}