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 execution settings:
| Target | Execution | Concrete backend | Cancellation |
|---|---|---|---|
| Workflow | interactive/shared | prefect_cloud_run_service | The Prefect flow run is set to cancelling; the worker stops the flow. |
| Workflow | job | prefect_cloud_run_jobs | The Prefect flow run is set to cancelling; the worker stops the flow. |
| Function or model | job | cloud_run_jobs | The Cloud Run Job execution is cancelled. |
| Function or model | interactive/dedicated | cloud_run | Not cancellable — interactive calls execute synchronously. |
| Function or model | interactive/shared | cloud_run_shared | Not cancellable — interactive calls execute synchronously. |
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.

