Skip to content

Guides

How to eliminate idle time in jobs

Jobs spend time doing nothing — waiting on a service, a sleep, or a poll loop.

4 min read

Jobs spend time doing nothing — waiting on a service, a sleep, or a poll loop.

Why it happens

Fixed sleeps and naive polling are common workarounds for missing readiness checks, and they cost real minutes.

How to fix it

  1. Replace sleep with a proper healthcheck and docker compose up --wait
  2. Poll with exponential backoff and a hard timeout rather than a fixed interval
  3. Move long waits for external systems out of the runner entirely — use a webhook callback

Your next build could be twice as fast, at half the price

Start free. Migrating away is the same one line, and we publish that diff too.