Prev Next

DevOps / Gitlab Interview questions

How do you troubleshoot a GitLab Runner stuck in "pending"?

A pipeline stuck showing pending almost always means GitLab can't find an available runner that matches what the job is asking for, rather than the runner having crashed mid-job.

  1. Check runner availability - In Settings > CI/CD > Runners, confirm at least one runner is online and not paused.
  2. Check tags - If the job specifies tags:, confirm a runner registered with those exact tags exists; a mismatch (even a typo) leaves the job unassignable.
  3. Check runner scope - A project-specific runner won't pick up jobs from other projects; a group runner needs the project to be inside that group.
  4. Check concurrency limits - If every runner is already busy at its configured concurrency limit, new jobs queue instead of starting.
  5. Check runner logs - On self-hosted runners, gitlab-runner status and the runner's system logs will show connection or registration errors.

Most "stuck pending" cases resolve once the tag mismatch or offline runner is found; it's rarely a pipeline syntax problem, since GitLab would report a config error separately rather than leave the job pending.

A job stuck in "pending" most often indicates:
A mismatched job tag versus runner tag causes the job to:

More Related questions...

What is GitLab? What is Git? What is the difference between Git and GitLab? What is the difference between GitLab and GitHub? What are the main features of GitLab? What is a GitLab repository? What is a GitLab merge request? What are GitLab CI/CD pipelines? What is a.gitlab-ci.yml file? What is a GitLab Runner? What are stages and jobs in a GitLab pipeline? What is a GitLab Issue Board? What are GitLab Epics? What is the difference between a GitLab group and a GitLab project? What is GitLab Container Registry? What is GitLab Pages? What are protected branches in GitLab? What is GitLab Auto DevOps? What is forking in GitLab? What are labels in GitLab? What is the GitLab Wiki? What are the different GitLab subscription tiers? What is GitLab Flow? What is a GitLab milestone? What is a GitLab Snippet? Explain the execution flow of a GitLab CI/CD pipeline from commit to deployment? Why would a DevOps team choose GitLab over GitHub for a single-platform workflow? How does a GitLab merge request differ from a GitHub pull request? What is the difference between GitLab.com (SaaS) and GitLab self-managed? How do you write a multi-stage.gitlab-ci.yml pipeline? When should you use CI/CD variables versus environment-scoped variables in GitLab? How do you troubleshoot a GitLab Runner stuck in "pending"? What is the difference between shell, Docker, and Kubernetes GitLab Runner executors? How does GitLab enforce merge request approvals with Code Owners? Explain the internal working of GitLab merge trains? What is the difference between GitLab CI/CD and Jenkins? How do you implement GitOps with GitLab and Kubernetes agent? Why use GitLab Auto DevOps instead of hand-writing pipelines? What is the difference between "include" and "extends" in GitLab CI/CD YAML? How does GitLab cache artifacts between pipeline jobs? When would you choose GitLab Ultimate over GitLab Premium? How do you configure branch protection rules to enforce a merge-request-only workflow? What is the difference between GitLab CI/CD "rules" and the deprecated "only/except" keywords? Explain the lifecycle of a GitLab issue from creation to closure? How do you optimize GitLab CI/CD pipeline performance for a large monorepo? What is the difference between GitLab Container Registry and Docker Hub? How does GitLab's Auto DevOps decide which CI/CD template to apply to a project? Why should you use GitLab environments to track deployments? What is the difference between a group-level and project-level CI/CD variable in GitLab? How do you troubleshoot merge conflicts flagged in a GitLab merge request?
Show more question and Answers...


Comments & Discussions