Slurm job pending: what each reason means and how to fix it
Updated · Scientifically reviewed by Dinkar Mishra, PhD on
Short answer
A pending Slurm job is waiting for a reason that Slurm records in the job's Reason field. Run squeue -u $USER -t PD -o "%.10i %.9P %.20j %.10r" to see it. "Priority" and "Resources" mean you are simply in the queue; QOS/Assoc*Limit means you hit a usage limit; ReqNodeNotAvail usually means a maintenance reservation; Dependency means you are waiting for another job. Each reason has a specific fix, listed below.
Who this is for
Researchers and students running simulations on a university or national Slurm cluster, and the PIs or admins who support them.
Software
Slurm ≥ 22.05 (commands unchanged in 23.x–25.x)
Symptoms
Your job shows state PD (pending) in squeue and does not start, sometimes for hours. The last column of the default squeue output, NODELIST(REASON), shows a reason in parentheses instead of node names, for example:
JOBID PARTITION NAME USER ST TIME NODES NODELIST(REASON)
812345 compute lwfa3d asmith PD 0:00 16 (Resources)
812346 compute scan_02 asmith PD 0:00 1 (QOSMaxCpuPerUserLimit)
Diagnosis
Start with these four commands. None of them needs administrator rights.
# 1. Your pending jobs with their reason (%r) and requested time (%l)
squeue -u "$USER" -t PENDING -o "%.10i %.9P %.20j %.6D %.10l %.25r"
# 2. Full detail for one job: look at Reason=, StartTime=, ReqTRES= and TimeLimit=
scontrol show job 812345
# 3. Estimated start time from the backfill scheduler
squeue --start -j 812345
# 4. Partition state, time limit and idle nodes
sinfo -p compute -o "%P %a %l %D %t"
If the reason is about priority or limits, these two commands explain it:
# Priority factors (age, fair-share, job size, QOS) for a pending job
sprio -j 812345 -l
# Your account's limits and fair-share usage
sacctmgr show assoc user="$USER" format=Account,Partition,QOS,GrpTRES,MaxTRES,MaxJobs,MaxSubmit
sshare -u "$USER"
What the common reasons mean
| Reason | Meaning | Is something wrong? |
|---|---|---|
Priority | Higher-priority jobs are ahead of you in this partition. | No. You are in the queue. |
Resources | Your job is next in line, waiting for enough nodes/CPUs/GPUs to become free. | No. It should start soon. |
QOSMax…PerUserLimit, QOSGrp…Limit | You (or your group) reached a limit of the Quality of Service, e.g. maximum CPUs or jobs per user. | No, but the job waits until your other jobs finish. |
AssocGrp…Limit, AssocMax…Limit | A limit on your account/association was reached (CPU-minutes, GRES, job count). AssocGrpCPUMinutesLimit often means your allocation is used up. | Possibly. Check your remaining allocation. |
ReqNodeNotAvail | Requested nodes are unavailable: down, drained or reserved. Often shown before planned maintenance. | Sometimes. See fix below. |
Dependency | Waiting for another job (--dependency) to reach the required state. | No. |
DependencyNeverSatisfied | The job it depends on ended in a way that can never satisfy the condition (e.g. afterok but it failed). | Yes. The job will never start. |
PartitionTimeLimit, PartitionNodeLimit | You asked for more time or nodes than the partition allows. | Yes. The job will never start. |
BeginTime | You set --begin, and that time has not arrived. | No. |
JobHeldUser, JobHeldAdmin | The job is held, by you (scontrol hold) or by an administrator. | Check why it was held. |
Reservation | Waiting for a reservation to become active. | No. |
The complete list is in the “Job reason codes” section of the official squeue documentation.
Fixes
Priority or Resources: make your job easier to schedule.
- Request an honest
--time. Slurm’s backfill scheduler can only start a job early if it fits in a gap, and shorter limits fit more gaps. - Request only what you use. Asking for whole nodes (
--exclusive), unusual memory or specific GPU types narrows where the job can run. - If your code scales poorly, fewer nodes for longer often starts sooner and wastes less allocation. Our strong vs weak scaling guide shows how to check.
QOS or association limits: wait, or split differently.
- Let running jobs finish, or combine many small jobs into a job array:
#SBATCH --array=0-99%10runs 100 tasks with at most 10 at once. AssocGrpCPUMinutesLimitorAssocGrpBillingMinutesmeans your allocation is exhausted. Ask your PI or HPC centre for more time.
ReqNodeNotAvail: check for a reservation.
scontrol show reservation # look for a maintenance window covering your requested time
sinfo -R # reasons nodes are down or drained
If a maintenance reservation starts before your job could finish, the job will not start until afterwards. Reduce --time so the job ends before the window and it can start immediately.
PartitionTimeLimit or PartitionNodeLimit: the request can never run.
scontrol update JobId=812345 TimeLimit=48:00:00 # at or below the partition limit shown by sinfo
# or move it to a partition that allows longer jobs
scontrol update JobId=812345 Partition=long
DependencyNeverSatisfied: cancel and resubmit.
scancel 812345
sbatch --dependency=afterany:812300 next_step.sh # afterany runs even if the first job failed
Held jobs: release your own hold with scontrol release 812345. For JobHeldAdmin, contact your administrator, because an admin hold usually has a reason.
When to get help
Contact your HPC support team, or us, if:
- a job shows
Resourcesfor many hours whilesinforeports idle nodes in that partition (possible misconfiguration); - you see
ReqNodeNotAvailwith no reservation and no down nodes; - the reasons change in ways the table above does not explain.
Include the output of scontrol show job <jobid> and sinfo -p <partition> when you ask.
Assumptions and limitations
- Commands are for Slurm 22.05 and later. Reason codes have been stable across recent releases, but sites can add custom limits, QOS names and job-submit plugins, so names may differ slightly on your cluster.
sacctmgrandsshareoutput depends on whether your site enables accounting and fair-share. Some sites restrict what users can see.- Estimated start times from
squeue --startare scheduler predictions, not guarantees.
Frequently asked questions
How long will my pending job wait?+
Run squeue --start -j <jobid>. Slurm's backfill scheduler then reports an estimated start time. It is an estimate based on the time limits of running jobs; jobs that finish early make it earlier, and higher-priority submissions can make it later. "N/A" means the scheduler has not planned the job yet.
Why do jobs submitted after mine start first?+
Usually backfill. Slurm lets a small or short job jump ahead if it can finish before your larger job could start anyway, so it does not delay you. Requesting an accurate (shorter) --time makes your own jobs eligible for backfill too.
Can I change a pending job without resubmitting it?+
Often yes. scontrol update JobId=<id> TimeLimit=02:00:00 or Partition=<name> works on pending jobs, within your permissions. Users can usually decrease but not increase limits such as the time limit.
What does "launch failed requeued held" mean?+
The job started, failed to launch on a node (often a node problem), was requeued and then held to stop it failing repeatedly. Check the node with scontrol show job, then release it with scontrol release <jobid> or ask your admin to inspect the node.
References
- squeue — Job reason codes · SchedMD (official Slurm documentation)
- Resource limits · SchedMD
- Multifactor priority plugin and sprio · SchedMD
- Scheduling configuration guide (backfill) · SchedMD
Still stuck?
Send us the error output and your job script. A computational scientist will diagnose it, usually within a day.
Services listed on this page are available today. Products marked “early access” or “in development” on our platform page are not yet generally available.
Spotted an error or an outdated command? Tell us. We correct verified issues promptly.