Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

cancelWorkflow

Audience: Programmer

Served by: workflow

Arguments

Name
Type
Default
Description

Returns

CancelWorkflowPayload!

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

Last updated

Was this helpful?