Cron expression

Cron every 90 minutes

One cron expression cannot say "every 90 minutes", but a short crontab workaround can. Below: the lines, how they work, what daylight saving does to them, and how to get an alert when the job stops.

toolsCrontab workaround
0Minute
0-21/3Hour
*Day of month
*Month
*Day of week

At minute 0 of hours 0, 3, 6, 9, 12, 15, 18 and 21, every day.

crontab -e
0 0-21/3 * * * /usr/local/bin/job.sh
30 1-22/3 * * * /usr/local/bin/job.sh

How do you run a job every 90 minutes with cron?

The first line runs at 00:00, 03:00 and every three hours after; the second runs at 01:30, 04:30 and every three hours after. Together they run the job every 90 minutes, 16 times a day.

crontab -e
0 0-21/3 * * * /usr/local/bin/job.sh
30 1-22/3 * * * /usr/local/bin/job.sh

What does 0 0-21/3 * * * mean?

At minute 0 of hours 0, 3, 6, 9, 12, 15, 18 and 21, every day.

FieldWrittenMeans
Minute00
Hour0-21/30, 3, 6, 9, 12, 15, 18 and 21
Day of month*every day of month
Month*every month
Day of week*every day of week

How often does it run?

On a day it runs, it runs 8 times. It runs on 365 days of 2027, 2,920 runs in all. Runs are 3 hours apart.

Runs on a day it runs
8
Days it runs in 2027
365
Runs in 2027
2,920
Shortest gap
3 hours

When is this schedule useful?

Jobs that need a rhythm between hourly and every two hours, such as rebuilding a recommendations index or pulling a slow data feed.

What should you watch out for?

Both lines must stay in step: change one hour range and the 90-minute rhythm breaks. A check with a 90-minute period alerts when it does.

What happens when the clocks change?

On Sunday 14 March 2027, clocks in America/New_York jump from 02:00 to 03:00. No run falls in the missing hour, so the day runs as usual.

On Sunday 1 November 2026, clocks in America/New_York fall back from 02:00 to 01:00, so the hour from 01:00 happens twice. No run falls in the repeated hour, so the day runs as usual.

A server that keeps its clock on UTC never sees either change. The next run calculator previews any zone.

How do you get an alert when it stops running?

Create a simple check that expects a ping every 1 hour 30 minutes, with 5 minutes of grace, then ping it at the end of the job. If a run does not report in by the end of the grace time, CronMissed sends an alert.

crontab -e
0 0-21/3 * * * /usr/local/bin/job.sh && curl -fsS --max-time 10 --retry 5 --retry-connrefused -o /dev/null "https://ping.cronmissed.com/5f0c1b2e-7a3d-4c8e-9b61-2d4f8a7e3c10"
30 1-22/3 * * * /usr/local/bin/job.sh && curl -fsS --max-time 10 --retry 5 --retry-connrefused -o /dev/null "https://ping.cronmissed.com/5f0c1b2e-7a3d-4c8e-9b61-2d4f8a7e3c10"

The snippet builder writes the same ping for systemd, GitHub Actions, Vercel, Kubernetes and backup scripts.

Questions and answers

What does 0 0-21/3 * * * mean in cron?
At minute 0 of hours 0, 3, 6, 9, 12, 15, 18 and 21, every day. On its own it does not give this schedule; the crontab lines on this page add what one expression cannot.
How often does 0 0-21/3 * * * run?
On a day it runs, it runs 8 times. It runs on 365 days of 2027, 2,920 runs in all. Runs are 3 hours apart.
How do I get an alert when this job stops running?
Create a simple check that expects a ping every 1 hour 30 minutes, with 5 minutes of grace, then add the ping to the end of the job so it requests the check URL after each successful run. If a run does not report in by the end of the grace time, CronMissed alerts you by email, Slack, Discord, Telegram, ntfy or webhook.

Know the first time this schedule misses a run

CronMissed expects a ping at every run of 0 0-21/3 * * *. When one is late or reports a failure, you get an alert by email, Slack, Discord, Telegram, ntfy or webhook.