Reference

rebase run cancel

Cancel a submitted run.

Synopsis

rebase run cancel <run-id>
rebase run cancel <run-id> --json

Arguments

ArgumentTypeDescription
<run-id>strRun ID.

Options

OptionTypeDescription
--jsonboolPrint machine-readable JSON output.

Behavior

Cancellation support depends on the run's target type and run type:

TargetRun typeConcrete backendCancellation
Workflowquickprefect_cloud_run_serviceThe Prefect flow run is set to cancelling; the worker stops the flow.
Workflowlongprefect_cloud_run_jobsThe Prefect flow run is set to cancelling; the worker stops the flow.
Function or modellongcloud_run_jobsThe Cloud Run Job execution is cancelled.
Function or modelquickcloud_runNot cancellable — quick runs execute synchronously. The API returns 409 ("quick runs execute synchronously and cannot be cancelled; use run_type='long' for cancellable runs").
Function or modelquick_sharedcloud_run_sharedNot cancellable — same synchronous execution and 409 behavior as quick.

Runs that already finished return a conflict error (run already finished with status ...). A successfully cancelled run ends with status cancelled, and a late-finishing worker cannot overwrite that state.

On this page