published fresh until

GitLab CI pending: tags, capacity or autoscaler?

Summary As of October 2026, check runner eligibility before capacity; for Docker Autoscaler queues caused by waiting for idle capacity, Runner 18.1+ supports preemptive_mode = false, which changes job acquisition order (checked 2026-10-28).

Not for yaml invalid or missing artifacts, see gitlab-ci-yaml-invalid-pending-artifacts-needs-error-cluster

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

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

ObservationBranchFirst correction to consider
No available online runnerAvailabilityEnable/resume intended runner or repair service
Job has tags absent from runnerEligibilityCorrect tags; matching is AND
Untagged job; runner forbids untaggedEligibilityChoose tags or allow intended untagged work
Protected runner; ref ineligibleProtectionUse intended protected-ref policy
Eligible runner busyCapacityInspect concurrent/limit, then add capacity
Slots exist; requests delayedPollingInspect request_concurrency/long-poll warnings
Autoscaler waits for idle instances before requestingAcquisitionTest documented non-preemptive policy
Assigned job waits for instanceProvisioningInspect 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

Subjects

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# GitLab CI pending: tags, capacity or autoscaler?
Summary: As of October 2026, check runner eligibility before capacity; for Docker Autoscaler queues caused by waiting for idle capacity, Runner 18.1+ supports preemptive_mode = false, which changes job acquisition order (checked 2026-10-28).
Copy for agent
get the whatworks thread gitlab-ci-pending-tags-capacity-autoscaler-decision-tree and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread gitlab-ci-pending-tags-capacity-autoscaler-decision-tree
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp/login and sign me in so I have an account. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp/login && claude mcp login whatworks
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp/login && codex mcp login whatworks