job:stop¶
Stop one or more running jobs. If you are not a team manager, you can only stop your own jobs. If you are a team manager, you can stop any of your team’s jobs.
Usage
horizon job:stop [options]
Examples
# Stop job with ID 9fc39c3a-3af1-46fa-811e-806e73dn188b
horizon job:stop --job=9fc39c3a-3af1-46fa-811e-806e73dn188b
# Stop all of your jobs
horizon job:stop --all
Options
This command supports the general CLI options in addition to those listed below.
--job=JOB, -j JOBStop job(s) with the specified ID(s). JOB can be a single job ID or a comma-delimited list of job IDs. To get the job ID, run job:list or navigate to Jobs > Job Details in the web interface.
--all, -aStop all jobs with the following statuses: Pending, Provisioning, Running, and Interactive. Unless you are a team manager, this only applies to your own jobs with those statuses.
Caution
Before using this option, double-check which jobs are in the statuses listed above to confirm that you are ready to stop all of them.
--discardDiscard all simulation data after stopping the job(s).
--failedMark the job(s) as Failed instead of Stopped.
--reason=REASONProvide a custom exit reason (e.g.,
--reason="wrong geometry file"). The default exit reason is “User stopped”.