TRAINING_JOB_PENDING, and queue priority sets the order in which pending jobs start.
How Baseten admits a job
Baseten compares each job’s required GPU count with the applicable organization and team quotas, current usage, and pending jobs:- If no eligible cluster has the required GPUs, Baseten rejects the submission with HTTP
429, even when queueing is enabled. - If the required GPUs are available, the job fits within the applicable GPU quotas, and no pending job ranks ahead of the submission, Baseten starts the job.
- If running jobs leave too little room under your organization’s GPU quota, Baseten places the job in
TRAINING_JOB_PENDINGwhen queueing is enabled for your organization. The job starts when quota becomes available and the job reaches the front of its queue. - If the job requires more GPUs than the organization quota, Baseten rejects the submission. The job can’t fit within the configured quota.
- If a job must wait for organization GPU quota, Baseten rejects the submission when queueing is disabled or the pending-job queue is full. Wait for running jobs to release quota before resubmitting. To discuss queueing and GPU quotas for your workload, Contact us.
A job that exceeds the organization quota returns an error that identifies the requested GPU count and the applicable quota:
Set queue priority
Priority reorders only jobs that are waiting for organization GPU quota. Higher values run first, and jobs default to priority0. Raise a job above 0 to run it sooner, or drop it below 0 to hold it behind default-priority work; the value is an unbounded integer. Priority doesn’t pause a running job or add cluster capacity.
To set a job’s priority when you submit it:
- Baseten CLI
- Training SDK
Pass
--priority to baseten train push:Priority: line holds the value.
Change the priority of a pending job
You can change a job’s priority only while the job is in theTRAINING_JOB_PENDING state.
- Baseten CLI
- Training API
To change a pending job’s priority:
-
Run the following command, replacing
<job_id>with the job ID and<priority>with the new priority:The command prints the job ID and the new priority, as inSet training job <job_id> priority to 100. -
To confirm, describe the job:
The
Priority:line holds the new value.
Resolve capacity errors
Read the submission error to choose whether to reduce the job’s GPU request, wait for running work to finish, or request a higher quota:Next steps
- GPU capacity: Check quotas and usage.
- Spot capacity: Run jobs on idle GPUs instead of waiting.