How do you run a cron job every minute only on specific hours?
Use * 11,16,21 * * *: minute * with an hour list runs every minute during those three hours, 180 times a day. For one run per hour change the minute to 0.
How do you run a cron job every minute only on specific hours?
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.
# 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.
* 11,16,21 * * * on CrontapAn 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.
* 11,16,21 * * * — command
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.
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