Skip to content

setWorkflowIsAssignable

Toggle the pyck_workflow_is_assignable search attribute on a running workflow execution. The workflow must be running and must have been registered with a WorkflowIsAssignableSetter handler via workflowsdk.SetupDefaults; otherwise Temporal returns “no update handler registered”.

Served by: workflow

Name Type
input SetWorkflowIsAssignableInput!

SetWorkflowIsAssignableResponse

Toggles the assignability flag on a running workflow execution by sending a Temporal update. The value is persisted to the pyck_workflow_is_assignable search attribute, which controls whether the workflow appears in assignableWorkflowExecutions queries.

mutation SetWorkflowIsAssignable($input: SetWorkflowIsAssignableInput!) {
setWorkflowIsAssignable(input: $input) {
isAssignable
}
}

Variables

{
"input": {
"isAssignable": false,
"workflowExecutionID": "<run ID>",
"workflowID": "<workflow execution ID>"
}
}