How can I delete a SLURM job?

Deleting a SLURM Job

 

This KB Article References: High Performance Computing
This Information is Intended for: Instructors, Researchers, Staff, Students
Created: 09/30/2019 Last Updated: 06/19/2024
 
 

First, ensure that you have loaded the slurm module:

module load slurm

Then, you can issue the following command to delete a job:

scancel <job_id>

If you are unsure of what your job ID is (it was displayed when you ran sbatch), you can use squeue to get the job ID's of all of your jobs in the queue:

squeue -u <your_username>

You can learn about more options for the scancel command by reading through the manual page with the command:

man scancel

 

For more information on SLURM, please also see the official documentation.

Article Topic