csph deployments runs cancel
cancel a run that is still going
🛑 Cancel a run that is still going.
The run stops and ends as failed. A run started with runs start can be
canceled; a run the job's schedule started can't. It asks for confirmation
first; --yes skips the question. Without a terminal (CI, a pipe, --no-input)
it refuses to run unless --yes is given.
A run that already ended can't be canceled.
Usage​
csph deployments runs cancel <deployment-id> <run-id> [flags]
Aliases​
deployments runs cancel, deployments runs stop, deployments run cancel, deployments run stop, deployment runs cancel, deployment runs stop, deployment run cancel, deployment run stop, deploys runs cancel, deploys runs stop, deploys run cancel, deploys run stop
Options​
Command Specific​
Formatting​
For more information about formatting options, see Formatting.
Available Fields​
command, deployment_id, duration_ms, exit_code, finished_at, id, job_name, line_count, message, object, started_at, status, triggered_by
Inherited​
Examples​
# cancel a run (asks first)
> csph deployment runs cancel <deployment-id> <run-id>
# cancel without asking, e.g. in CI
> csph deployment runs cancel <deployment-id> <run-id> --yes
# pick the deployment and run interactively
> csph deployment runs cancel
See also​
- csph deployments runs — start and manage runs
- csph deployments runs list — list a scheduled job's runs
- csph deployments runs start — start a run now
- csph deployments runs logs — read what a run wrote