Reference
rebase run cancel
Cancel a submitted run.
Synopsis
rebase run cancel <run-id>
rebase run cancel <run-id> --jsonArguments
| Argument | Type | Description |
|---|---|---|
<run-id> | str | Run ID. |
Options
| Option | Type | Description |
|---|---|---|
--json | bool | Print machine-readable JSON output. |
Behavior
Cancellation support depends on the run's target type and run type:
| Target | Run type | Concrete backend | Cancellation |
|---|---|---|---|
| Workflow | quick | prefect_cloud_run_service | The Prefect flow run is set to cancelling; the worker stops the flow. |
| Workflow | long | prefect_cloud_run_jobs | The Prefect flow run is set to cancelling; the worker stops the flow. |
| Function or model | long | cloud_run_jobs | The Cloud Run Job execution is cancelled. |
| Function or model | quick | cloud_run | Not 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 model | quick_shared | cloud_run_shared | Not 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.

