Cron job every minute
The crontab line for a job every minute is * * * * *. It runs 1,440 times a day, 525,600 times a year. Edit it below to see the next runs in your time zone.
How * * * * * reads
The five fields are minute, hour, day of month, month and day of week. A star means every value.
| Field | Value | Meaning |
|---|---|---|
| Minute | * | every minute |
| Hour | * | every hour |
| Day of month | * | every day of month |
| Month | * | every month |
| Day of week | * | every day of week |
For example, from Wednesday 6 January 2027 at 10:07 the next runs are: Wed 6 Jan 2027, 10:07; Wed 6 Jan 2027, 10:08; Wed 6 Jan 2027, 10:09; Wed 6 Jan 2027, 10:10; Wed 6 Jan 2027, 10:11.
What a job every minute is for
A job every minute suits queues and inboxes that should feel instant without a long-running worker: sending queued email, picking up uploaded files, or a framework’s scheduler (Laravel’s schedule:run, WordPress’s wp-cron run from the system cron) that decides itself what is due.
Common mistakes
- If a run can take longer than a minute, the next one starts anyway and two copies run at once. Wrap the command in flock, for example «flock -n /tmp/job.lock command», so a second copy exits instead.
- «*/1 * * * *» is the same as «* * * * *»; neither runs more often than once a minute. For every 30 seconds, use a loop inside the job or a systemd timer.
The same schedule as a systemd timer
On systems with systemd, a timer can replace the crontab line: OnCalendar=*-*-* *:*:00. Check it with systemd-analyze calendar "*-*-* *:*:00", which prints the next run.
Know when it didn’t run
Cron doesn’t tell you when a job stops running. Add a heartbeat monitor with a period of 1 minute and end the line with a call to its URL, for example * * * * * /path/job.sh && curl -fsS -m 10 <ping URL>. If a ping is late by more than the grace time you set, you get an alert, and a call to the URL with /fail reports a failure at once.
What is the cron expression for a job every minute?
* * * * *. It runs 1,440 times a day, 525,600 times a year, on the server’s clock.
How do I run a job every minute with systemd instead?
Create a timer with OnCalendar=*-*-* *:*:00 next to a service that runs the job, then enable it with systemctl enable --now name.timer. Persistent=true also runs a run that was missed while the machine was off.