setWorkflowIsAssignable
Since pyck v0.27.0
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
Arguments
Section titled “Arguments”| Name | Type | Default | Description |
|---|---|---|---|
input |
SetWorkflowIsAssignableInput! |
Returns
Section titled “Returns”SetWorkflowIsAssignableResponse
Example
Section titled “Example”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>" }}