Cloud fallback: a runner for when your machines can't

Add a Hetzner server as a backup runner. It takes a GitHub Actions job only when your own Macs and Linux boxes are busy, asleep or off. The rest of the time, your own machines do the work.

What is cloud fallback?

Cloud fallback is a mode for a cloud machine in your own Hetzner account. The machine keeps no idle runner. It takes a queued job only when none of your own machines can take it, or when the job has waited past a limit, 120 seconds by default. So jobs don't sit in the queue when your laptop sleeps.

  • Your machines go first. A free, online machine with the right labels always gets the job.
  • No idle runner. The cloud machine registers a runner only when a job needs it.
  • On by default for every new cloud machine. You can turn it off at any time.

How does fallback decide which jobs to take?

When a job is queued, Codemany checks your other machines. If one has an online, idle runner whose labels match the job, the cloud machine stays out of it. If none does, because they are busy, asleep or off, the cloud machine takes the job. A job that has waited past the limit is taken anyway.

Your own machinesWhat the fallback machine does
One is free and has the job's labelsWaits. Your machine runs the job.
All are busyTakes the job.
Your Mac is asleep or offTakes the job.
The job has waited past the limit (120 s by default)Takes the job anyway.

How do I turn fallback on or off?

When you add a cloud machine, the switch Only take jobs when my own machines are busy or asleep is on. Leave it on for a backup runner. Turn it off and the machine takes jobs like any other. You can change it later on the machine's page in Codemany Console.

Adding a cloud machine takes a few steps in the Mac app. See GitHub Actions runners on your Hetzner account.

Do my jobs run when my Mac is asleep?

Yes, with a fallback machine. A Mac that sleeps goes offline, and GitHub can't give it jobs. Codemany keeps a Mac awake while jobs run, but a closed laptop on battery still sleeps. With fallback on, the Hetzner server picks up those jobs, so the queue keeps moving.

Jobs that need macOS, such as Xcode builds, still wait for a Mac. A Hetzner server runs Linux. See Mac runners.

What does a fallback machine cost?

You pay Hetzner its monthly price for the server, and Codemany a $10 a month machine seat. There are no per-minute charges. The server stays on all month, because Hetzner bills a stopped server in full. The app shows the monthly price before you create it.

Example prices from Hetzner are in the Hetzner guide. Plans are on the pricing page.

Which problems does fallback fix?

  • Jobs stuck on "Waiting for a runner to pick up this job" because every machine is busy or asleep. See the fix guide and jobs waiting for a runner.
  • A self-hosted runner that shows Offline while your Mac sleeps or reboots. See runner shows Offline.
  • Busy days, when a big matrix build fills every machine you own.

Questions

Is fallback on by default?

Yes, for every new cloud machine. You can turn it off when you add the machine, or later.

How long does a job wait before the cloud machine takes it?

120 seconds by default, unless one of your own machines takes it first.

Does a fallback machine keep an idle runner?

No. It registers a runner only for a queued job that your own machines can't take.

Which cloud can I use?

A Hetzner server in your own Hetzner account. Hetzner bills you directly.

Read next: Hetzner runners, the self-hosted runner guide, Mac runners, Linux runners and runner shows Offline.

Codemany is $20 a month for 2 machines, and $10 for each extra machine. Try it free for 14 days, with no card.

Start a 14-day trial