Skip to main content

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​

--account <string>
account ID

-y, --yes

skip the confirmation prompt

Formatting​

For more information about formatting options, see Formatting.

--fields <strings>
output JSON with the specified fields
--jq <string>
filter JSON output with jq expression

-o, --output <string>

output format: [table|plain|csv|json|yaml]
--template <string>
format JSON using a Go template

Available Fields​

command, deployment_id, duration_ms, exit_code, finished_at, id, job_name, line_count, message, object, started_at, status, triggered_by

Inherited​

--config <string>
config file (default is $HOME/.config/computesphere/configuration.yaml)
--debug
enable debug logging

-h, --help

show this help message

-i, --interactive

run interactively (prompts, pickers, table browser)
--log-level <string>
log level: [trace|debug|info|warn|error|fatal|panic|disabled||api]
--no-color
disable color output
--no-input
disable interactive mode

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​