Cancel a pending or running workflow run.
Syntax
$ vela workflows cancel <run-id>
$ vela workflows cancel <run-id> -t productionThe run id comes from vela workflows list. A pending run never starts; a running one is marked canceled and its worker stops at the next step boundary. A run that has already completed or failed cannot be canceled.
Targets
Without -t, the run is canceled in the local database. With -t, it is canceled in a deployed copy of the app over SSH:
$ vela workflows cancel 017b37dd-9212-4554-a120-fb3e1d8189a9 -t productionEach copy of the app has its own runs, so pass the same -t the id was listed with. An id that target does not have is reported as that, and nothing is canceled.
On a deployed target the command asks first, naming the workflow and the run’s state, unless -y is passed. Where there is no terminal to ask on, such as CI, it refuses without -y rather than canceling unasked.
Options
-y, --yes- Skip the confirmation asked for on a deployed target-t, --target <target>- Which copy of the app to act on, defaults tolocal--server <ssh>- Server this target runs on, recorded on first use-i, --identity <file>- SSH private key to authenticate with--ssh-port <port>- SSH port--accept-host-keys- Trust an unknown host key on first connect (CI)