Cancelling Jobs

From HPCwiki
Jump to navigation Jump to search

To stop a job before it finishes — whether it is still waiting in the queue or already running — use scancel. Pass the job ID as the argument:

scancel 3401

Replace 3401 with the job ID returned by sbatch when you submitted, or the ID shown by squeue. SLURM signals the job to stop; you don't need to confirm it ran.

See also