Guide · SLURM · 16 min read
Why is my SLURM job still waiting in the queue?
Checked against the docs · SLURM documentation 26.05 · Last checked 11 November 2026 · Spot a mistake? Tell us
Short answer
Run squeue --me and read the reason in brackets in the last column. Priority and Resources mean your job is in line and will start on its own; a reason ending in Limit means a cap on you, your group or the partition, and it starts when usage drops or never, depending on which cap; PartitionTimeLimit, DependencyNeverSatisfied and a held job will not start until you change something. squeue --start shows SLURM's own estimate of when it starts.
What does "pending" mean, and where does SLURM say why?
When you submit a job with sbatch, SLURM (the program that shares a cluster out) puts it in the queue, the list of jobs waiting for machines. A job that is waiting is pending: PD in the short form of its state, PENDING in the long form. The SLURM docs describe a pending job as "queued and waiting for initiation", which will typically carry a reason code: one word saying why it has not started yet.
You read that word with squeue, from the login node:
squeue --me--me lists only your jobs (it is the same as --user= your user name). The output looks like this (an example, not a real queue):
JOBID PARTITION NAME USER ST TIME NODES NODELIST(REASON)
123456 standard TiO2-rela jsmith PD 0:00 2 (Priority)
123457 short Si-static jsmith PD 0:00 1 (PartitionTimeLimit)
123458 standard Fe-relax jsmith R 41:07 1 node042The last column does two jobs. For a running job it lists the nodes the job is on. For a pending job it prints the reason in brackets. To see only your waiting jobs, add -t PD (--states=PENDING).
Two things about that reason are worth knowing from the start:
- It is one reason, not all of them. The docs say a job may be held back by several things at once, and
squeueshows only the one the scheduler met when it last tried to place the job. Fix that one and a second can appear. NoneorWaitingForSchedulingmean "not looked at yet". The scheduler has not evaluated the job in its latest pass. Its main loop runs every 60 seconds by default (sites can change this), so wait a minute and look again.
Why does the reason matter?
Because it tells you whether to wait or to act. Some reasons clear on their own: your job is in line and the line moves. Others never clear by themselves: the SLURM docs say a job that asks for more time than its partition allows is "left in a PENDING state (possibly indefinitely)". A job like that can sit in the queue for days doing nothing while you think it is waiting its turn.
The cost of not knowing runs the other way too. Canceling and resubmitting a job that was only waiting its turn puts it at the back again: one of the things that raises a job's priority is how long it has been eligible to run, and a new job starts that count from zero.
What do the common reasons mean?
The meanings below are from SLURM's Job reason codes page, which lists every reason; the actions are what a user (not an administrator) can do about each.
| Reason | What it means | Will it start on its own? | What you can do |
|---|---|---|---|
Priority | One or more jobs with a higher priority are waiting for the same partition (or reservation). | Yes, in turn. | Wait. A smaller or shorter request may start sooner (see backfill, below). |
Resources | The resources your job asks for are in use by other jobs. | Yes, when they free up. Your job is usually next in line. | Wait. squeue --start gives an estimate. |
Dependency | The job depends on another job (--dependency) that has not finished the way the dependency asks. | Yes, once the other job does. | Check the other job with squeue or sacct. |
DependencyNeverSatisfied | The job it depends on ended in a way that can never satisfy the dependency, for example afterok on a job that failed. | No. By default it stays pending. | scancel it and submit again without the dependency, or with the right one. |
JobHeldUser | Held by you (or an account coordinator), for example with scontrol hold or sbatch --hold. A held job has its priority set to zero. | No. | scontrol release <job id>. |
JobHeldAdmin | Held by an administrator. | No. | Ask your cluster's administrators; only they can release an admin hold. |
BeginTime | You asked for a start time (--begin) that has not come yet. | Yes, at that time. | Nothing, unless the time was a mistake. |
PartitionTimeLimit | Your walltime (--time) is longer than the partition allows. | No: possibly never. | Lower the walltime, or move the job to a partition with a longer limit (see "What can I change", below). |
PartitionNodeLimit | The number of nodes you asked for is outside the partition's current limits; it can also mean the nodes it needs are down or drained (taken out of service). | Not while the limit stands. | Ask for fewer nodes, or use another partition. |
A reason starting QOSMax or AssocMax, such as QOSMaxWallDurationPerJobLimit or AssocMaxCpuPerJobLimit | Part of this one job's request is over a per-job maximum of your QOS (quality of service, a set of limits and priorities a job runs under) or your association (the combination of cluster, account, user and partition that SLURM keeps limits for). | Not while the request stays over the limit. | Ask for less (time, cores, nodes), or use a QOS or partition with higher limits. |
QOSMaxJobsPerUserLimit, AssocMaxJobsLimit | You already have as many jobs running as you are allowed at once. | Yes, when one of your running jobs ends. | Wait. |
A reason starting QOSGrp or AssocGrp, such as AssocGrpCpuLimit | Your group (the QOS or association) has reached a total, shared limit, for example on the cores all its jobs may hold at once. | Usually, when the group's other jobs end. A limit on minutes "by past, present and future jobs" may not free up until the site resets or ages the usage. | Wait, or talk to whoever manages your group's allocation. |
ReqNodeNotAvail | A node the job needs is not available: in use, reserved, in a reservation, down, drained or not responding. Down or drained nodes are named as UnavailableNodes in the reason. | Yes for nodes in use or reserved; down and drained nodes need an administrator. | If you asked for particular nodes by name, stop asking for them. |
Reservation | The job is waiting for its advance reservation (a block of nodes set aside for a time) to become available. | Yes, when the reservation starts. | Nothing. |
PartitionDown, PartitionInactive | The partition is down or inactive and not starting jobs, often for maintenance. | Yes, when administrators bring it back. | Wait, or use another partition. |
InvalidAccount, InvalidQOS | The account or QOS the job names is not valid for you. | No. | Cancel it and submit with a valid --account (or QOS). |
The names with a * in SLURM's lists (QOSMax*, AssocGrp*) are families: the part in the middle says which resource the limit is on (CPU, memory, nodes, jobs, wall time, minutes).
How does SLURM decide which job starts next?
Priority. Every pending job has a priority, a whole number; the larger it is, the sooner the job is scheduled. On most clusters it comes from SLURM's multifactor priority plugin: the job's priority is a weighted sum of factors, each between 0 and 1. The factors the docs list are:
- Age: how long the job has been waiting in the queue and eligible to run. It grows the longer you wait, up to a maximum the site sets. It does not grow while a job waits on a dependency, or while its node or time limits are beyond the cluster's current limits.
- Fair-share: how much of the cluster your account has used compared with what it was promised (below).
- Job size: the nodes or CPUs the job asks for. The site decides whether larger or smaller jobs are favored.
- Partition and QOS: a priority attached to the partition or QOS you submit to.
- Association, site and TRES (trackable resources, such as CPUs, memory or GPUs) factors, which sites may also use.
- Nice: a value you can set on your own jobs to lower their priority. Only privileged users can raise it.
Each factor counts only if your site gives it a weight; the docs say no factor is enabled by default. So which factors matter, and how much, is your cluster's choice. sprio -w shows your cluster's weights.
The order the scheduler looks at jobs. Before priority, the docs list: jobs that can preempt others, jobs with an advance reservation, and the partition's priority tier. Then the job's priority, then its submit time, then its job id. So the job with the highest priority number is not always the first one considered.
Backfill. Strictly in priority order, a large job at the front would hold everyone up while it waited for nodes. Most clusters run SLURM's backfill scheduler instead (the docs say it is loaded by default): it starts a lower-priority job early if doing so does not delay the expected start of any higher-priority job. In practice, a job that is small enough and short enough to fit into the gap before a big job's reserved start can go first. Backfill works from the time limits jobs ask for, which is why the docs stress that reasonably accurate time limits are important. Two consequences for you:
- A walltime close to what the job needs, rather than the partition's maximum, gives backfill a chance to slot your job into a gap.
- Backfill reserves whole nodes for jobs, for speed, even if the jobs don't need whole nodes.
How can I see my job's priority?
sprio -j 123456 # the factors behind one job's priority
sprio -u $USER # all your pending jobs
sprio -w # the weights your cluster gives each factorsprio shows each factor's contribution (age, fair-share, job size, partition, QOS and the rest) for pending jobs, so you can see whether your job is low because it is new, because your group has used a lot, or because of the partition. It works only where the multifactor plugin is in use. squeue --me -o "%.10i %.10Q %R" prints the job id, the overall priority number and the reason side by side.
What should I do while my job waits?
- Read the reason:
squeue --me -t PD. - If it is
PriorityorResources, the job is in line. Ask when it should start (squeue --start, next section) and leave it be: canceling and resubmitting restarts its age. - If it says
Limit, decide which kind: a cap on how much runs at once (it clears when other jobs end) or a request over a per-job maximum (it never clears until you ask for less). - If it is
PartitionTimeLimit,PartitionNodeLimit,DependencyNeverSatisfied,JobHeld…orInvalid…, it will not start on its own. Change the request, release it, or cancel and resubmit. - If the reason is
None, wait a minute: the scheduler has not looked at it yet.
Choose your reason:
| What squeue says | What to do | Why |
|---|---|---|
| Priority or Resources | Wait; it starts in turn | The job is in line: other jobs are ahead of it (Priority) or the nodes it needs are busy (Resources). squeue --start gives SLURM's estimate, which moves as other jobs end early or new ones arrive. |
| QOSMaxJobsPerUserLimit | Wait for one of your running jobs to end | You already have as many jobs running as your QOS allows at once. This one starts when one of them finishes. |
| PartitionTimeLimit | Lower the walltime or change partition | The walltime is longer than the partition allows; the SLURM docs say the job can stay pending indefinitely. Lower its time limit, move it to a partition with a longer limit, or cancel it and submit again. Your site may restrict which of these scontrol update lets you do. |
| Dependency… | Check the job it depends on | Dependency: the other job has not finished the way the dependency asks; this one waits. DependencyNeverSatisfied: it never will (for example afterok on a job that failed), and by default this job stays pending until you cancel it. |
| JobHeldUser | Release it | A held job has priority zero and never starts until it is released. You can release a hold you (or a coordinator) placed; an administrator's hold (JobHeldAdmin) needs the administrators. |
The job ids in the commands are examples.
When will my job start?
squeue --me --startThis lists your pending jobs in order of expected start, with their expected start time and the nodes SLURM plans to give them. It is the backfill scheduler's plan, not a promise: the docs say the expected start time depends on when running jobs are expected to finish, so it moves when they end early, when higher-priority jobs arrive, or when nodes go down. The docs also say an expected start is only available if the cluster uses backfill scheduling.
To ask before you submit, add --test-only to sbatch: the docs say it validates the script and returns an estimate of when the job would be scheduled, given the current queue, without submitting anything.
sbatch --test-only job.shTo see everything SLURM knows about one job (its reason, priority, time limit, partition and dependency) in one place:
scontrol show job 123456And to know what the partitions allow, so you can tell a limit from a wait:
sinfo -o "%P %l %D %c %m"That prints each partition's name, its maximum time per job, its number of nodes, the CPUs per node and the memory per node (in mebibytes).
What can I change, and what can't I?
You can change your request. SLURM lets you modify your own pending jobs with scontrol update, "subject to certain restrictions", and most fields can only be changed while the job is pending. The ones that matter for waiting:
- The time limit:
scontrol update JobId=123456 TimeLimit=04:00:00. Lowering it can bring it within the partition's limit or fit it into a backfill gap. The docs are explicit that only a privileged user can increase the time limit of a job that is already running. - The partition:
scontrol update JobId=123456 Partition=standard. - A minimum time: submit with
--time-minas well as--time, and backfill may lower your time limit, never below--time-min, if that lets the job start sooner. - Holds:
scontrol holdandscontrol releaseon your own jobs. - The order of your own jobs:
sbatch --nicelowers a job's priority, so your more urgent ones go first.scontrol top <job ids>moves jobs ahead of your other jobs in the same partition, account and QOS, but the docs say it is disabled for ordinary users unless the site turns it on.
You cannot change other people's jobs, the priority weights, your fair-share, an administrator's hold, a negative nice value (raising your priority) or the partitions' limits. Your site may also refuse some of the updates above. If an update is refused, scancel the job and submit it again with the new request; it loses its place in the queue, so only do this when the job would not start anyway.
If your work really needs more than a partition allows, a longer time or more nodes, ask your cluster's administrators: some sites grant longer limits through a special QOS. The partition names, QOS names and limits are local to each cluster and are in its user guide.
What goes wrong while waiting?
| Mistake | What you would see | What to do |
|---|---|---|
| Asking for more walltime than the partition allows | (PartitionTimeLimit), for hours or days. | Lower the time limit or change partition; check limits first with sinfo -o "%P %l". |
| Asking for more nodes than the partition allows | (PartitionNodeLimit). | Fewer nodes, or a partition with more. |
| Canceling and resubmitting a job that was only waiting its turn | The new job is back behind jobs that arrived after the old one. | Leave jobs that say Priority or Resources; check squeue --start instead. |
| Always asking for the partition's maximum walltime | The job rarely starts early, because backfill cannot fit it into gaps. | Ask for your best estimate plus a margin (see How do I submit a job on SLURM?). |
afterok on a job that then failed | (DependencyNeverSatisfied), for ever. | scancel it; resubmit once the first job is fixed. |
Forgetting a job was submitted with --hold | (JobHeldUser). | scontrol release <job id>. |
| Asking for specific nodes by name | (ReqNodeNotAvail) while those nodes are busy, reserved or down. | Leave node names out unless you must have them. |
| A wrong account name, or one not set up for you | (InvalidAccount). | Check the account name with your group or administrators, then submit again. |
Try it
Try it: which job will not start by waiting?
Each listing below is in squeue's default layout, modeled on the example in the squeue manual; the jobs are made up. In each, one pending job will not start unless someone acts. Choose its line. The reasons are from SLURM's list of job reason codes.
Script 1.
JOBID PARTITION NAME USER ST TIME NODES NODELIST(REASON)
12345 debug job1 dave R 0:21 4 dev[9-12]
12346 debug job2 dave PD 0:00 8 (Resources)
12347 debug job3 ed PD 0:00 4 (Priority)
12348 debug job4 ed PD 0:00 4 (PartitionTimeLimit)The problem is line 5, 12348 debug job4 ed PD 0:00 4 (PartitionTimeLimit): PartitionTimeLimit: the job's time limit is longer than its partition's current time limit. The sbatch manual says such a job is left pending, possibly indefinitely. Resources means the resources it asked for are in use by other jobs, and Priority that jobs with higher priority come first: both are waits in line. Cancel it with scancel 12348 and resubmit with a --time within the partition's limit; sinfo lists each partition's TIMELIMIT.
Script 2.
JOBID PARTITION NAME USER ST TIME NODES NODELIST(REASON)
12350 debug job5 dave R 1:02 4 dev[9-12]
12351 debug job6 dave PD 0:00 4 (DependencyNeverSatisfied)
12352 debug job7 dave PD 0:00 4 (Dependency)
12353 debug job8 ed PD 0:00 2 (BeginTime)The problem is line 3, 12351 debug job6 dave PD 0:00 4 (DependencyNeverSatisfied): DependencyNeverSatisfied: the job depends on another job in a way that will never be satisfied. Dependency means the job it depends on has not finished yet, and BeginTime that the job's earliest start time has not come yet. Cancel it with scancel 12351, and resubmit it with a dependency that can be met.
Script 3.
JOBID PARTITION NAME USER ST TIME NODES NODELIST(REASON)
12360 debug job9 ed PD 0:00 8 (Resources)
12361 debug job10 ed PD 0:00 4 (JobHeldUser)
12362 debug job11 dave PD 0:00 4 (Priority)The problem is line 3, 12361 debug job10 ed PD 0:00 4 (JobHeldUser): JobHeldUser: the job is held by its user or an account coordinator. A hold keeps a pending job from starting (scontrol hold sets its priority to 0) until it is released. scontrol release 12361. The job's owner can release a user hold.
While a job waits, Monitor shows the reason SLURM gives for it, how long it has waited and when Verlet will check the queue again. Before you submit, pre-flight checks your request, so one the partition could never run is caught before it reaches the queue.