Skip to main content

Run a cron job every minute during specific hours

Question

How do you run a cron job every minute only on specific hours?

Answer

Use an asterisk in the minute field and list the hours when the job may run. The expression below fires once per minute throughout the 11th, 16th, and 21st hours: from 11:00 through 11:59, 16:00 through 16:59, and 21:00 through 21:59. That produces 180 runs per day.

crontab
# every minute during hours 11, 16, and 21
* 11,16,21 * * *

Read * 11,16,21 * * * from left to right: the minute * matches every minute; 11,16,21 selects those three hours in 24-hour time; the day-of-month * allows every date; the month * allows every month; and the day-of-week * allows every day of the week. If you intended one run at the top of each selected hour, change the minute field to 0. For a lower frequency within each selected hour, use a minute step such as */5 or */15, after confirming that your cron implementation supports step syntax.

Run * 11,16,21 * * * on Crontap
Why this matters

An asterisk in the minute field can turn what looks like three selected times into 180 daily executions. That can create overlapping jobs, duplicate writes, unexpected API traffic, or a sharp load spike if each run takes longer than one minute. Confirm that jobs cannot overlap, or add locking or idempotency where needed. If your intent is only three daily runs, use 0 11,16,21 * * * instead.

Read the dedicated guide: Cron business hours.

Cron schedule used

What it does

* 11,16,21 * * * — command

Every minute, at 11:00, 16:00, and 21:00, every day.

Calendar

View future cron matches in a calendar

September 2026 · UTC

0 runs

See this cron expression on the calendar view example

Write the cron here. Run it on Crontap.

Point Crontap at any URL. Pick any cron. Done.

WordPress, Shopify, Railway, Cloud Run, Vercel, HubSpot, Ghost, your own box. If it answers HTTP, Crontap can drive it on a clock you can read, in the timezone that actually matters, and page you when something breaks.

1.9k+ teams · Free forever tier · No credit card

Permalink: https://tool.crontap.com/help/cron-job-run-script-at-specific-hours