Cron expression for every minute
Runs the job once a minute, all day, every day.
* * * * *
Every minute
Field by field
- Minute · 0–59
*every minute - Hour · 0–23
*every hour - Day of month · 1–31
*every day of the month - Month · 1–12 or JAN–DEC
*every month - Day of week · 0–7 or SUN–SAT
*every day of the week
Next runs in your local time
Why this schedule, and when it bites
* * * * * is the loudest schedule cron has: 1,440 starts a day, each one a process spawn, a log line and a slot that can overlap the previous run. It is the right tool for liveness checks that must catch a dead service within a minute, and the wrong default for anything that could tolerate five. The expression itself is simple; the discipline it demands is not.
A one-minute slot is shorter than most jobs. If the run can take 70 seconds, cron will start a second copy while the first is still working. Overlap turns a slow job into a pileup. Either prove the run ends well under a minute or take a lock and make the second copy exit.
Fourteen hundred log lines a day add up. At one run per minute the job writes 1,440 entries daily even when nothing is wrong. Log at start and finish only, keep failures at error level, and rotate. A noisy minute job can fill a disk before the first incident.
The daemon itself is a dependency. If cron restarts or the host reboots, missed minutes are simply skipped. For monitoring that must not blink, pair the job with an external heartbeat: the job pings a watchdog, and the watchdog alerts when the pings stop.
Where this cron expression shows up
- Health checks that need to catch a failure quickly
- Queue workers and lightweight pollers
- Smoke tests on an environment you can throw away
Common variations
-
Every 30 seconds (two entries, no seconds field)
*/1 * * * * Every minute
-
Every five minutes
*/5 * * * * Every 5 minutes
Ranges, steps, and names are spelled out on the cheat sheet.
Questions this schedule raises
Does * * * * * really run every minute?
Yes: all five fields are unrestricted, so the job fires at :00 of every minute, 1,440 times a day. There is no seconds field in classic cron, which is why sub-minute schedules need two entries, a sleep inside the job, or a scheduler with seconds.
What is the difference between * * * * * and */1 * * * *?
Nothing. Both mean every minute. The step form is how tools that generate schedules write the same thing; the plain star is what people type. Some linters flag the step as redundant, none changes the behaviour.