Lesstep
GitLab · CI/CD jobs · Checked October 28, 2026

GitLab: a job dropped as stuck or over its timeout

If a job does not progress for an extended period, GitLab drops it and records a failure reason; the threshold depends on the state of the job (GitLab: job troubleshooting, checked October 28, 2026). The job then fails with the message for that reason, for example:

The job was stuck in pending state with no matching runners available.
Check your runner tags or configuration

The job was running but showed no activity for an extended period.
Check your job script or try again

The running job exceeded the maximum execution time set for the job

Which threshold, which reason

The messages are those of the GitLab source (app/presenters/commit_status_presenter.rb, read on October 28, 2026). On older jobs, or on a GitLab older than 19.0, you may see the reasons these replaced: stuck_or_timeout_failure, "There has been a timeout failure or the job got stuck. Check your timeout limits or try again", which GitLab 19.0 and later keep for historical data only, and job_execution_timeout, "The script exceeded the maximum execution time set for the job", deprecated as a retry value in GitLab 19.1 (retry:when). If the job failed at once instead of waiting, it was not dropped for one of these.

Which timeout applies

What to do

test:
  script: rspec
  timeout: 2h
  retry:
    max: 2
    when:
      - stuck_pending_no_matching_runners
      - no_updates_running
      - server_timeout_running

GitLab jobs in IntelliJ IDEA

Pipeline Inbox for GitLab CI, a plugin by Lesstep for JetBrains IDEs 2024.1 or later, lists the pipelines of your GitLab projects with their jobs by stage. Next to a failed job it shows the status, how long the job ran and the message GitLab gives for the failure, such as the ones above (GitLab gives none for a script that failed), and it opens the log of a job in a console viewer at the bottom of the IDE. Reading is free; retrying, cancelling and running are Pro (US$1.50 a month, with a 30-day trial).

GITLAB is a trademark of GitLab Inc.; IntelliJ IDEA is a trademark of JetBrains s.r.o. This page is not affiliated with or endorsed by GitLab Inc. or JetBrains.

More: GitLab job log refused or empty · GitLab "This job does not have a trace." after 18.0 · GitLab pipeline or job refused (400, 403, 409, 429) · GitLab pipeline failed with no jobs · GitLab job waiting for resource · GitLab "Insufficient permissions to set pipeline variables" · GitLab 404 "Group Not Found" · GitLab "insufficient_scope" · GitLab pipeline plugins for IntelliJ IDEA, compared · 日本語