Kueue, a job queue for Kubernetes, suspends each Job that you submit to it until the ClusterQueue of the Job has enough free quota for the Job. While the Job is suspended, it has no Pods. The Job has no logs, because no container runs. The scheduler writes no events, because there is no Pod to schedule. Kueue writes the reason for the wait in a Workload object that it creates for the Job.
We tested each case below on Kubernetes 1.37.0 with Kueue 0.20, except the reason Misconfigured, which we saw only as Inadmissible on Kueue 0.19.6. We repeated the main cases on Kueue 0.19.6, which is the newest Kueue version in the KKP application catalog. The GPUs in our tests were simulated. Each Job names a LocalQueue in the namespace of the Job. The LocalQueue points to a ClusterQueue, and the ClusterQueue sets the quota. Our ClusterQueue had a quota of 4 GPUs.
Check whether the Job is suspended
In this listing, Kueue has admitted train-a, the Job train-b waits for quota, and the Job train-typo has a typing mistake in its queue name.
$ kubectl get jobs -n team-a
NAME STATUS COMPLETIONS DURATION AGE
train-a Running 0/3 16s 16s
train-b Suspended 0/3 6s
train-typo Suspended 0/1 6s
If Kueue manages a Job, and the Job has the status Suspended and no Pods, Kueue has not admitted the Job yet. If the Job has Pods in the state Pending, Kueue has already admitted the Job, and the events of the Pods show why the scheduler has not placed them.
Read the conditions on the Workload
Kueue creates one Workload for each Job, and it adds the UID of the Job to the Workload as a label. This command prints the conditions of the Workload.
JOB=train-b
NS=team-a
JOB_UID=$(kubectl get job "$JOB" -n "$NS" -o jsonpath='{.metadata.uid}')
FMT='{range .items[*].status.conditions[*]}'
FMT+='{.type}={.status} {.reason}: {.message}{"\n"}{end}'
kubectl get workloads.kueue.x-k8s.io -n "$NS" \
-l kueue.x-k8s.io/job-uid="$JOB_UID" -o jsonpath="$FMT"
The command uses the full resource name workloads.kueue.x-k8s.io, because Kubernetes 1.37 has its own Workload API in the scheduling.k8s.io group. That API was turned on in our test cluster. In that cluster, kubectl get workloads printed No resources found while Kueue had two Jobs suspended.
For train-b, the output includes the line below, which we wrapped to fit the page.
QuotaReserved=False WaitingForQuota: couldn't assign flavors to pod set
main: insufficient unused quota for nvidia.com/gpu in flavor gpu-nodes,
2 more needed
The Job train-b runs three Pods, and each Pod requests one GPU. The Job train-a uses 3 of the 4 GPUs in the quota. So one GPU is free, and train-b needs two more.
What each reason means
Kueue 0.20 reports the four reasons below by default. Kueue 0.19 reports Pending for WaitingForQuota and ExceedsMaxQuota, and it reports Inadmissible for Misconfigured and Suspended. On Kueue 0.19, you can turn on the alpha feature gate UnadmittedWorkloadsObservability to get the four reasons. If an alert matches the reason names of Kueue 0.19, update the alert when you upgrade.
- The reason
WaitingForQuotacomes with the messageinsufficient unused quota for nvidia.com/gpu in flavor gpu-nodes, 2 more needed. Kueue starts the Job when other Jobs release enough quota. - The reason
ExceedsMaxQuotacomes with a message that ends withpodset request (6) > maximum capacity (4). The Job requests more GPUs than the ClusterQueue has in total, so Kueue cannot start it with this request. Raise the quota or reduce the number of Pods in the Job. - The reason
Misconfiguredmeans that the Job names a LocalQueue that does not exist. On Kueue 0.19.6, the message wasLocalQueue gpu doesn't exist. Correct thekueue.x-k8s.io/queue-namelabel on the Job. - The reason
Suspendedcomes with the messageClusterQueue team-a is inactive. Check the conditions of the ClusterQueue.
On Kueue 0.19, a Job that can start when another Job finishes reports Pending by default. A Job that can never start also reports Pending. The message shows which case applies. The words insufficient unused quota mean that the Job can start when other Jobs release enough quota. The words maximum capacity mean that the Job requests more GPUs than the ClusterQueue has in total.
Check the ClusterQueue when it is inactive
While a ClusterQueue is inactive, Kueue admits none of the Jobs that are sent to it. The wide output of kubectl get clusterqueue shows why the ClusterQueue is inactive. We shortened some column names here.
$ kubectl get clusterqueue team-a -o wide
NAME COHORT STRATEGY PENDING ADMITTED ACTIVE REASON
team-a BestEffortFIFO 1 0 False Stopped
The reason Stopped means that someone set stopPolicy on the ClusterQueue. The reason FlavorNotFound means that the ClusterQueue refers to a ResourceFlavor that does not exist. Kueue 0.20 added the ACTIVE and REASON columns. On Kueue 0.19, the reason is in the Active condition of the ClusterQueue, and this command prints it.
kubectl get clusterqueue team-a \
-o jsonpath='{range .status.conditions[*]}{.type}={.status} {.reason}: {.message}{"\n"}{end}'
When the Job starts without waiting
By default, Kueue manages only Jobs that have the kueue.x-k8s.io/queue-name label. In our test, a Job without this label started at once. Kueue does not manage such a Job, so its GPUs are not in the quota usage. If a team uses more GPUs than its quota allows, look for Jobs without the label. The Kueue setting manageJobsWithoutQueueName makes Kueue suspend Jobs without the label in the namespaces that Kueue manages. This setting is off by default. The setting managedJobsNamespaceSelector selects the namespaces that Kueue manages.
When Kueue admits the Job and Pods stay Pending
Kueue compares the GPUs that a Job requests with the quota in the ClusterQueue. Kueue does not count the GPUs on your nodes, unless you use its topology features. In our test, we set the quota higher than the 8 GPUs on the node, and we submitted a Job with ten Pods. Kueue admitted the Job. Eight Pods ran, and two Pods stayed Pending. The Job used all eight GPUs, and it could not run its last two Pods.
Set the quota to the number of GPUs on your nodes. Also check the timeout of waitForPodsReady. Since Kueue 0.19, waitForPodsReady is on by default with a timeout of 30 minutes. With this default, a Job that runs only some of its Pods keeps its GPUs for up to 30 minutes. In our test on Kueue 0.20, we lowered the timeout to less than a minute. Kueue then evicted and suspended the Job, which deleted its Pods and freed the eight GPUs.
Alerting on a queue
Kueue exports the metric kueue_pending_workloads for each ClusterQueue, with the status active or inadmissible. Kueue 0.20 reports the metric kueue_unadmitted_workloads by default, with the reason as a label. On Kueue 0.19, this metric needs the feature gate UnadmittedWorkloadsObservability. A Job that names a LocalQueue that does not exist belongs to no ClusterQueue, so it may not appear in the pending count of any ClusterQueue. To find these Jobs, list the Workloads whose QuotaReserved condition has been False for longer than your normal wait.
Even when the quota is correct, two Jobs can each get some of the GPUs that they need, because the scheduler places Pods one at a time. Then neither Job can start all of its Pods. Stop half-started GPU jobs with gang scheduling in Kubernetes 1.37 shows how gang scheduling prevents this.





