What this thread does
Pending A valid GitLab CI job is waiting for runner assignment; find whether eligibility, polling or autoscaler capacity prevents it. Do first: open Settings → CI/CD → Runners and compare effective job tags with an enabled online runner available to that project. Evidence — official examples establish tag matching and an autoscaler remedy; no fleet or queue-time improvement was tested here. Not for: GitLab CI yaml invalid or No files to upload; see gitlab-ci-yaml-invalid-pending-artifacts-needs-error-cluster.
How to diagnose and fix
1. Confirm the job is pending, not manual, awaiting approval or not yet created. Read the job message and expanded configuration. Resolve variables used in tags; runner tags differ from Git tags. 2. Check the runner is online, unpaused, available to the project and permitted for the ref. Protected runners restrict eligibility. It must have every job tag. Untagged jobs require Run untagged jobs. 3. If eligible, check manager health/capacity. The official troubleshooting command is journalctl --unit=gitlab-runner.service -n 100 --no-pager. Correlate requests and jobs without exposing credentials. Compare GitLab and Runner versions. 4. Inspect global concurrent, runner limit and request_concurrency before adding workers. Advanced configuration distinguishes execution slots from simultaneous requests and explains long-poll starvation. 5. Only for Docker Autoscaler, inspect whether requests stop while idle capacity is prepared. The GitLab support article recommends idle_count = 0, or preemptive_mode = false on Runner 18.1+ (checked 2026-10-28), when that idle-capacity behavior causes excessive queueing. 6. Apply one change and compare queue duration, request rate and time until scripts actually start. Leaving pending can merely move waiting into infrastructure preparation.
Diagnostic: Pending
| Observation | Branch | First correction to consider |
|---|---|---|
| No available online runner | Availability | Enable/resume intended runner or repair service |
| Job has tags absent from runner | Eligibility | Correct tags; matching is AND |
| Untagged job; runner forbids untagged | Eligibility | Choose tags or allow intended untagged work |
| Protected runner; ref ineligible | Protection | Use intended protected-ref policy |
| Eligible runner busy | Capacity | Inspect concurrent/limit, then add capacity |
| Slots exist; requests delayed | Polling | Inspect request_concurrency/long-poll warnings |
| Autoscaler waits for idle instances before requesting | Acquisition | Test documented non-preemptive policy |
| Assigned job waits for instance | Provisioning | Inspect readiness, quota/acquisition timeout |
Eligibility follows Configuring runners; capacity follows the advanced reference.
Source → target behavior boundary
The pair is Runner before 18.1 → Runner 18.1+ (checked 2026-10-28), a setting boundary, not a full upgrade recipe. This does not mean every older runner has the fault or every pending job needs an upgrade.
With a compatible runner, edit the applicable existing policy entry:
[[runners.autoscaler.policy]]
preemptive_mode = false
This partial example is not a replacement config.toml. Preserve periods and other policy values. The policy reference says the last matching policy wins: enabled mode waits for confirmed capacity; disabled mode requests jobs before finding/provisioning capacity. idle_count counts job capacity, not necessarily machines.
The Docker Autoscaler guide requires a dedicated autoscaling resource per configuration; sharing a group across managers can create conflicting scaling decisions.
What to test
Use tagged/untagged control jobs, an intended protected-ref job and a short burst beyond idle capacity. Record eligibility, assignment, provisioning and script start separately. Check capacity/cost after idle-policy changes; retain a rollback.
Pitfalls
More tags narrow eligibility. Job timeout does not solve assignment. Autoscaler policy cannot repair a shell runner. A live runner heartbeat does not prove workers acquire jobs. Locate the bottleneck before increasing fleet-wide concurrency.
Public evidence
GitLab Support's operational comparison reports “Runner will pause requesting for jobs until configured idle capacity is reached.” Its graphs compare idle policies and support this acquisition-order branch. Independent public confirmation of this exact remedy: none found.
A prompt to give your agent
Your training data may predate this boundary. Read the linked configuration, policy reference and support article. Determine executor, effective tags, protection and project availability first. Then inspect execution/request limits and provisioning. Suggest preemptive_mode only for the documented autoscaler case, explain where waiting moves and provide a reversible test without exposing credentials.
Limits
No GitLab fleet or autoscaler was operated. The support article does not promise zero queue time or fix tag mismatches; it identifies a configuration-dependent cause. Independent trial evidence is thin. This is a pending-job decision tree, not a complete release migration or provider-specific provisioning guide.
Started from a post by @GitLab Support, packaged by the editor. Original post