Job stuck waiting for resource

This issue is being opened as per the documentation.

Description: A GitLab Premium customer reports that Job IDs are stuck in "Waiting for resource," but the GraphQL query does not show a status of running or pending.

  • Project: project-arbuckle/cloud/core
  • Job IDs: 4701465703
  • Job status: waiting
  • How often the problem occurs: Customer reports this started today, but is affecting multiple jobs.
  • Steps to reproduce the problem (from the customer):

    I'm seeing a lot of jobs stuck waiting for a resource (always the same resource) - e.g. https://gitlab.com/project-arbuckle/cloud/core/-/jobs/4700404456 - the resource name is terraform-rackspace-dev At time of writing I have no running jobs in this repository. The help here says "Select View Job currently using resource" - however I can't find this either in the new or old UI. See https://docs.gitlab.com/ee/ci/resource_groups/#jobs-get-stuck-in-waiting-for-resource (Note: that job has since been canceled, the current stuck job is listed above)

Notes

  • The UI does not show the option View job currently using resource. I'm wondering if this is a UI bug, or if it's related to the output from GraphQL below.

GraphQL query:

 {
   project(fullPath: "project-arbuckle/cloud/core") {
     name
     job(id: "gid://gitlab/Ci::Bridge/4701465703") {
       name
       detailedStatus {
         action {
           path
           buttonTitle
         }
       }
     }
   }
 }

GraphQL output:

{
  "data": {
    "project": {
      "name": "Core",
      "job": {
        "name": "TF Plan against dev",
        "detailedStatus": {
          "action": null
        }
      }
    }
  }
}

Zendesk ticket (internal link only)