Fix "Waiting for a runner to pick up this job"
GitHub shows "Waiting for a runner to pick up this job" when no runner can take the job right now. Here are the five common causes, in the order to check them, with a fix for each.
What does "Waiting for a runner to pick up this job" mean?
It means GitHub queued your job, but no runner can take it yet. A runner can take a job only if it is online, idle, allowed to use the repo, and has every label in runs-on. If no runner meets all four, the job waits. GitHub-hosted jobs can also wait briefly when GitHub is busy.
How do I see why my job is waiting?
Open your repo's Settings › Actions › Runners. Each runner shows Idle, Active or Offline, and its labels. Compare those labels with the job's runs-on. For an organization, also open Organization settings › Actions › Runner groups. You can list runners from the terminal too:
# runners added to one repo
gh api repos/OWNER/REPO/actions/runners --jq '.runners[] | {name, status, busy, labels: [.labels[].name]}'
# runners added to an organization
gh api orgs/ORG/actions/runners --jq '.runners[] | {name, status, busy}'
Five causes and how to fix each
The runner is offline
An offline runner gets no jobs. Start the machine, wake it, or restart the runner service. A Mac that sleeps goes offline too. Read runner shows Offline.
The labels don't match
The runner needs every label in
runs-on. One typo and the job waits forever. Don't mix hosted labels likeubuntu-latestwithself-hosted. See Runner labels.The runner group leaves the repo out
Organization runners live in runner groups, and a group can be limited to some repos. Public repos are left out unless you allow them. Add the repo to the group.
The runner can't see the repo
A runner added to one repo serves only that repo. Add it to the organization that owns the repo instead, or add a runner to this repo too.
Every runner is busy
Each runner runs one job at a time. A big matrix fills them all. Add runners, cap the matrix with
max-parallel, or add a backup machine that takes jobs only when the others are full.
strategy:
max-parallel: 2
matrix:
node: [20, 22, 24]
How do I stop jobs waiting when my machines are busy or asleep?
Add a backup runner that only works when yours can't. In Codemany, a Hetzner server in your own account can run in fallback mode. It keeps no idle runner. It takes a job only when your own machines are busy, asleep or off, or after the job waits 120 seconds by default. See cloud fallback.
Set one up in a few minutes: GitHub Actions runners on your Hetzner account.
Why is my GitHub Actions job queued for so long?
On a self-hosted runner, a long queue almost always means one of the five causes above. Most often it's a label typo or a runner that went offline. On GitHub-hosted runners, check githubstatus.com, because jobs queue while GitHub has trouble. Larger hosted runners can also wait for a free machine.
How does Codemany avoid waiting jobs?
Every Codemany runner carries self-hosted and codemany, plus system labels like Linux or macOS. Codemany keeps a Mac awake while jobs run and moves idle runners to repos with waiting jobs. Public repos stay off until you turn them on, so their jobs wait until then.
Each machine runs as many jobs as it has room for, about 4 GB of memory, 2 cores and 15 GB of disk per job. More in jobs waiting for a runner and Troubleshooting.
Questions
Why is my job waiting forever?
Usually its runs-on labels match no online runner. Check the labels in Settings › Actions › Runners.
Can a job run if my self-hosted runner is offline?
No. It waits until a matching runner comes online, or until GitHub cancels it after 24 hours in the queue.
Do runner groups block jobs?
Yes, if the group isn't allowed to use the repo. Add the repo in Organization settings › Actions › Runner groups.
Can I add a backup runner for busy times?
Yes. A Codemany cloud machine in fallback mode takes jobs only when your own machines are busy, asleep or off.
Related
Read next: jobs waiting for a runner, runner shows Offline, Runner labels, the self-hosted runner guide and cloud fallback.