Job Status

When your job is submitted to the queue using sbatch, it will be given a job number. You can use this number in conjunction with several SLURM commands to see the current status of your job.

squeue

First, check to see what your job ID number(s) are by running squeue -u [username]
[user@lunchbox] (15)$ squeue -u user
JOBID PARTITION NAME USER ST TIME NODES NODELIST(REASON)
4173027_4418183 long bucky-sl user R 0:02 1 marzano04

scontrol

Now use scontrol to view information on that JobID number.

[mikec@lunchbox] (14)$ scontrol show job 4173027_448183
JobId=4624291 ArrayJobId=4173027 ArrayTaskId=448183 JobName=bucky-slurm-submit.sh
UserId=user(11662) GroupId=user(11662) MCS_label=N/A
Priority=11029 Nice=0 Account=ane QOS=normal
JobState=RUNNING Reason=None Dependency=(null)
Requeue=1 Restarts=0 BatchFlag=1 Reboot=0 ExitCode=0:0
RunTime=00:02:42 TimeLimit=4-00:00:00 TimeMin=N/A
SubmitTime=2018-01-01T17:04:22 EligibleTime=2018-01-01T17:04:22
StartTime=2018-01-12T10:41:19 EndTime=Unknown Deadline=N/A
PreemptTime=None SuspendTime=None SecsPreSuspend=0
Partition=long AllocNode:Sid=marzano02:3953
ReqNodeList=(null) ExcNodeList=(null)
NodeList=marzano03
BatchHost=marzano03
NumNodes=1 NumCPUs=2 NumTasks=1 CPUs/Task=1 ReqB:S:C:T=0:0:*:*
TRES=cpu=2,node=1
Socks/Node=* NtasksPerN:B:S:C=0:0:*:* CoreSpec=*
MinCPUsNode=1 MinMemoryNode=0 MinTmpDiskNode=0
Features=(null) Gres=(null) Reservation=(null)
OverSubscribe=OK Contiguous=0 Licenses=(null) Network=(null)
Command=/workspace/user/carrot/bucky-slurm/bucky-slurm-submit.sh
WorkDir=/workspace/user/carrot/bucky-slurm
StdErr=/workspace/user/carrot/bucky-slurm/slurm-4173027_448183.out
StdIn=/dev/null
StdOut=/workspace/user/carrot/bucky-slurm/slurm-4173027_448183.out
Power=

If your job doesn't appear in the queue after you've submitted it, it most likely failed immediately. SLURM leaves slurm output files with the filename format of slurm-[JobID].out. If you specified a job name in your submit script with the #SBATCH -J directive, the slurm output file will use that name instead. This slurm output file will contain any slurm-related errors. If, however, your job failed due to something in your programming, be sure to check your program's assigned output file if you set one, such as an *.Rout file in the case of R.