Skip to main content
Skip table of contents

Basic SLURM commands

Introduction to SLURM commands

 

You will only be able to see information about your own jobs. Information from other users is currently not available to you.

squeue

See the status of your jobs in the queue

BASH
$ squeue
             JOBID PARTITION     NAME     USER ST       TIME  NODES NODELIST(REASON)
              1519   hsw-fdr serial_t USERNAME  R       0:01      1 node001

A definition of the fields:

JOBIDA unique ID number assigned to your job, this will be stored in the accounting logs and you can use it to query for more information later.
PARTITIONThe name of the partition or "queue" the job runs in. Each partition has a set of nodes and billing rate. See the "Choosing your partition" section below.
NAMEThe name of your job; you can set this value to anything you'd like.
USERThe username of that is running the job.
STThe state of the job: PD (pending), R (running), CA (cancelled), CF(configuring), CG (completing), CD (completed), F (failed), TO (timeout), NF (node failure) and SE (special exit state).
TIMEThe elapsed run-time of the job.
NODESHow many nodes you are running on.
NODELISTThe list of nodes you are running on.
(REASON)The reason why your job is pending, or not running.

sbatch

Submit a batch job to run on the cluster

BASH
$ sbatch my-job-script.sh

scancel

Cancel a job running on the cluster.  If the job is currently running it will kill it; if the job is pending it will prevent it from running.

BASH
$ scancel 1519

These commands have many options; this is only an introduction. Please check the man pages for each command for more information.

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.