Cancelling jobs

Jobs can be cancelled using the scancel command, which expects a job id as its argument:

$ scancel 2782

If you have a job that starts multiple tasks/steps, it is also possible to only send a signal to one of these steps. The following command can be used to send a TERMINATE signal to step 3 of job 2782:

scancel --signal=TERM 2786.1

It is also possible to kill all your current pending and running jobs.

$ scancel --user=p123456

Finally, you can also select multiple of your jobs for cancellation. For instance, if you want to kill all your waiting (pending) jobs in the partition “short”, you could use the following command:

$ scancel --state=PENDING --user=p123456 --partition=short