Skip to main content

13. Run control

Operations

OperationEndpointEffect
PausePUT /api/workflow/{id}/pauseThe run stops taking steps. Status PAUSED. Waiting tasks stay waiting.
ResumePUT /api/workflow/{id}/resumeThe run continues. Status RUNNING.
TerminateDELETE /api/workflow/{id}?reason=The run ends. Open worker messages are removed and their tasks set CANCELED; agent calls in progress are cancelled. The failure workflow starts if defined. Status TERMINATED.
RetryPOST /api/workflow/{id}/retryA new run that reuses the recorded outputs of completed tasks and continues from the failed task. Linked by retry_of.
RestartPOST /api/workflow/{id}/restart?useLatestDefinitions=falseA new run from the first task with the same input. With true, the latest definition version is used. Linked by restart_of.
Rerun from a taskPOST /api/workflow/{id}/rerun with {reRunFromTaskRefName, taskInput, workflowInput}Like retry, resuming from a named task with optional new input. Linked by rerun_of.
Skip a taskPUT /api/workflow/{id}/skiptask/{ref} with {taskInput, taskOutput}The waiting task is recorded SKIPPED with the given output and the run continues.
Reset callbacksPOST /api/workflow/{id}/resetcallbacksDelayed worker messages for this run are re-sent immediately.
Bulk/api/workflow/bulk/{operation} with a list of idsThe same operation on each id, with a result per id.

A definition with restartable: false rejects restart and rerun.

Test runs

POST /api/workflow/test with {workflowDef, input, taskRefToMockOutput} runs the interpreter with the given outputs substituted for activity and worker tasks. No external call is made. The pipeline uses this to test definitions.