Skip to main content

pause_workflow

Function pause_workflow 

Source
pub async fn pause_workflow(
    auth: Authenticated,
    __arg1: State<AppState>,
    __arg2: Path<String>,
) -> Result<impl IntoResponse, ApiError>
Expand description

Pause a workflow: workers stop picking its queued runs.

Runs already executing are left alone (pause them one by one with POST /api/v1/runs/{id}/pause), and new runs are still created: they wait in the queue until the workflow is resumed. Pausing a workflow already paused succeeds and keeps its first paused_at. Every pause publishes a workflow_paused audit event carrying the caller’s user id.