Monk CIMonk CI home

22 Nov, 2026Akshit Mandial

How Monk CI Isolates Runners and Cleans Up Execution State


Every Monk CI job runs on a fresh VM with an ephemeral GitHub Actions runner, so a leftover file never breaks your next build.

Monk CI runs every GitHub Actions job on its own VM with an ephemeral runner. When the job ends, Monk CI deletes the VM. This post explains what that means for your builds.
A shared CI machine keeps state. A cache from an earlier build, a leftover file or a stray process can still be there when your job starts. Any of these can change the result of your build.

How each job gets its own VM

Monk CI claims a ready VM from a pool for your label. That VM never ran a job, and no other job can use it while yours runs. No file or process from an earlier job is on it.

Monk CI then registers an ephemeral runner on the VM, in your organization's runner group. An ephemeral runner takes one job. Then GitHub removes it. The VM serves your organization only, so jobs from another organization never run on it.

Cleanup after every job

When the job ends, the Monk CI agent on the VM uploads the logs and reports the result. Then Monk CI deletes the VM. A failed build gets the same cleanup as a passed build. Monk CI refills the pool after each deletion, so the next job also starts on a fresh VM.

A VM that does not get a job powers off on its own, so you never pay for an idle machine.

Caches that speed up your builds

Caches persist, because that is their purpose. Monk CI scopes both caches to your organization and repository:

  • The Actions cache lives in the Monk CI cache service.
  • The Docker layer cache is optional. It gives your Docker builds a persistent BuildKit cache.

What this means for your builds

Every build starts from the same clean machine, so a green build does not depend on a file that an earlier job left behind. You do not write cleanup steps for the runner. A failed build cannot dirty the next one.

To share data between jobs, use artifacts or caches. Then your workflow behaves the same on every run.

Before you move a workflow, read the compatibility checklist. To follow one job from webhook to cleanup, read the job lifecycle walkthrough.

Try Monk CI for free

Continue with GitHub