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 execution settings:

TargetExecutionConcrete backendCancellation
Workflowinteractive/sharedprefect_cloud_run_serviceThe Prefect flow run is set to cancelling; the worker stops the flow.
Workflowjobprefect_cloud_run_jobsThe Prefect flow run is set to cancelling; the worker stops the flow.
Function or modeljobcloud_run_jobsThe Cloud Run Job execution is cancelled.
Function or modelinteractive/dedicatedcloud_runNot cancellable — interactive calls execute synchronously.
Function or modelinteractive/sharedcloud_run_sharedNot 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.

On this page