Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to view shared runner queue

I'm using Gitlab's shared runner. Build has been in 'pending' state for over 20 minutes.

How to debug this? is it something to do with the runner availability or script execution issue.. Is it possible to gain more insight by any means?

enter image description here

like image 519
Sahas Avatar asked Jul 20 '16 12:07

Sahas


People also ask

How do I access GitLab runner?

For a shared runner, have an administrator go to the GitLab Admin Area and click Overview > Runners. For a group runner, go to Settings > CI/CD and expand the Runners section. For a project-specific runner, go to Settings > CI/CD and expand the Runners section.

What are shared runners?

With shared runners, this means that anyone that runs jobs on the runner, can access anyone else's code that runs on the runner. In addition, because you can get access to the runner token, it is possible to create a clone of a runner and submit false builds, for example.


1 Answers

I don't think the UI supports viewing a shared runner's queue. However, this 'pending' state can be caused by things other than a queue.

Check the tags for that pipeline stage against the tags supported by the runners available to the runners activated for your project:

Screencap of Runners screen for a pipeline

Remember, tags can vary from stage to stage, so it's possible for the first few stages to work before your pipeline is blocked.

Gitlab-ci will indicate 'pending' when a runner cannot be found with tags matching a given stage.

like image 96
Matt Alioto Avatar answered Sep 23 '22 15:09

Matt Alioto