actions / runner

The Runner for GitHub Actions :rocket:
https://github.com/features/actions
MIT License
4.82k stars 947 forks source link

Self-Hosted Runner does not pick up queued jobs #3478

Open JasperRaccoon opened 3 days ago

JasperRaccoon commented 3 days ago

Describe the bug I have a workflow with various jobs that have to be ran one by one by the runner. But the runner only picks up the first one or two jobs and doesn't pick up the rest of the jobs in the queue. It enters into an idle state when there are multiple jobs in the queue, the only way for the runner to pick them up and finish the workflow is if I manually cancel and re-run the failed jobs.

This was not happening a couple days ago, it just randomly started without any significant modification to the workflow or runner.

Expected behavior The self-hosted runner should finish all the jobs in the queue.

Runner Version and Platform

Version of your runner? 2.319.1

OS of the machine running the runner? OSX/Windows/Linux/... Linux Ubuntu 24.04.1 LTS

SyedShayaan commented 2 days ago

I am having the same issue, self hosted runner is not picking up queued tasks: version:2.319.1 Linux Arm64 It shows up as idle on GitHub org level runners page, tried to recreate the runner multiple times, still getting issue.

hikouki-gumo commented 1 day ago

Have you tried restart listener ? Is it work? I do seems have the same issue. Actions did not pick up the job, but after restart listener, Actions picked up the jobs.

It's not long term solution but have no idea how to solve this issue yet. Seems Actions has this issue from several previous version until latest version.

SyedShayaan commented 1 day ago

@hikouki-gumo Restarting the GitHub action runner did not solve the problem for me. My GitHub action runner was made at an organization level, but what worked was creating a repo level GitHub action runner. This repo level runner was able to pick up jobs. Not sure why the org level runner broke.

To create repo level GitHub action runner: MyRepo -> Settings -> Actions ->Runners [click New self-hosted runner]