Skip to content

*/5 * * * *

Every 5 Minutes — Learn how to run a cron job every 5 minutes. Includes AWS EventBridge and Quartz equivalents.

Next 5 executions (UTC)

Next 5 execution times in UTC for */5 * * * *
#Execution time (UTC)
12026-11-28 07:05 UTC
22026-11-28 07:10 UTC
32026-11-28 07:15 UTC
42026-11-28 07:20 UTC
52026-11-28 07:25 UTC
Edit & Simulate in Local Timezone

Running “*/5 * * * *” in production

What actually runs every 5 minutes in production

Five minutes is the classic polling interval — short enough that users never notice staleness, long enough that you are not hammering anything. The usual residents: HTTP health checks and synthetic probes that page someone within minutes of an outage; Prometheus-style metric exporters that scrape targets between evaluation passes; queue drainers that move work off slow database-backed tables; and cache warmers that pre-compute an expensive homepage or dashboard so the first request after a deploy is already fast. The */5 step form means the job fires at :00, :05, :10 — aligned to the wall clock, which also means every server running it fires at the same moment.

That alignment is worth engineering around. Twelve fires per hour, all on the clock, produce a visible load sawtooth — the thundering-herd effect you can see in any metrics dashboard with 5-minute-period spikes. The standard mitigations: stagger the minute (7-59/5 fires at :07, :12, :17 — see the offset recipe), jitter the start inside the job, or accept the spikes when the work is trivial. If you are polling an external API, 12 calls an hour times your server count is also a rate-limit line worth counting before it counts against you.

Beyond crontab: systemd, Kubernetes, and Celery equivalents

On modern Linux, systemd timers are the crontab successor: a .timer unit with OnCalendar=*:0/5 fires every fifth minute with logging to journald, Persistent=false semantics, and the ability to survive reboots without a crontab install step. Kubernetes CronJobs take the same expression — schedule: "*/5 * * * *" in a batch/v1 CronJob — but add the operational knobs cron never had: concurrencyPolicy: Forbid stops a slow run from overlapping itself, backoffLimit bounds retries, and startingDeadlineSeconds decides whether a missed fire (during a controller outage) still counts. Since Kubernetes 1.27 you can set timeZone: directly; before that, the controller evaluated schedules in UTC and there was no per-job override.

Python services usually skip OS cron for Celery beat: crontab(minute='*/5') in CELERY_BEAT_SCHEDULE delivers the same cadence inside your worker fleet, with the schedule shipped in code review instead of a server's crontab. Django's native answer for lightweight work is a management command invoked by any of the above. On Windows, Task Scheduler's schtasks /sc minute /mo 5 covers the same ground. The simulator above stays the same debugging tool for all of them — the expression is the contract; only the wrapper changes.

Common questions

How do I run a cron job every 5 minutes but avoid the thundering herd?

Offset the minute field. */5 * * * * fires exactly on :00/:05/:10 alongside every other server in the world; 4-59/5 * * * * fires at :04/:09/:14 and spreads your load. Add jitter inside the job (a short random sleep before the real work) when the target is a shared external API, and use a distributed lock (Redis, a database lease) when multiple workers run the same schedule so only one actually executes.

Does Kubernetes CronJob support "*/5 * * * *" directly?

Yes — the schedule field takes standard 5-field cron, so "*/5 * * * *" works verbatim in a batch/v1 CronJob. Two platform notes: the controller evaluates schedules in UTC unless you set timeZone (available since Kubernetes 1.27), and you want concurrencyPolicy: Forbid or Replace if a single run can exceed five minutes, otherwise overlapping jobs pile up silently. missed deadline behavior is governed by startingDeadlineSeconds.