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.