Mutation
mutation CancelPendingWorkflowExecutions($input: CancelPendingWorkflowExecutionsInput!) {
cancelPendingWorkflowExecutions(input: $input) {
cancelledCount
error {
message
type
code
fields {
field
message
type
}
}
}
}Variables
{
"input": {
"workflowId": "id"
}
}Response
{
"data": {
"cancelPendingWorkflowExecutions": {
"cancelledCount": 1,
"error": {
"message": "string",
"type": "VALIDATION",
"code": "string",
"fields": [
{
"field": "string",
"message": "string",
"type": "VALIDATION"
}
]
}
}
}
}Mutations
cancelPendingWorkflowExecutions
Cancel every QUEUED and WAITING execution of a workflow. Running executions are left to finish.
MUTATION
cancelPendingWorkflowExecutions(input: CancelPendingWorkflowExecutionsInput!): CancelPendingWorkflowExecutionsOutput!Arguments
input
required
cancelledCount
Int
How many QUEUED or WAITING executions were cancelled. Zero when the workflow had none.
error
Mutation
mutation CancelPendingWorkflowExecutions($input: CancelPendingWorkflowExecutionsInput!) {
cancelPendingWorkflowExecutions(input: $input) {
cancelledCount
error {
message
type
code
fields {
field
message
type
}
}
}
}Variables
{
"input": {
"workflowId": "id"
}
}Response
{
"data": {
"cancelPendingWorkflowExecutions": {
"cancelledCount": 1,
"error": {
"message": "string",
"type": "VALIDATION",
"code": "string",
"fields": [
{
"field": "string",
"message": "string",
"type": "VALIDATION"
}
]
}
}
}
}Was this page helpful?

