Cron expression for every 30 minutes
Runs the job twice an hour, on the hour and on the half hour.
*/30 * * * *
Every 30 minutes
Field by field
- Minute · 0–59
*/30every 30th 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
Half-hourly jobs sit in a pleasant middle: two runs an hour feel responsive to a person watching a dashboard, while the load stays far below per-minute polling. The expression has one cosmetic fork: */30 and 0,30 compile to exactly the same two minutes. Use the list when a reader of the crontab should see the intent at a glance, use the step when the family of schedules follows a */N pattern.
0,30 and */30 are identical, mixing them is not. Both fire at :00 and :30. What breaks is a copy-paste edit that changes one field and leaves the other half of a pair on a different cadence. Keep one spelling per job family and the diffs stay readable.
The half hour boundary is a rate-limit wall. Billing and CRM APIs often reset their windows on the half hour, so */30 lands exactly when the quota refills and also when every other integration calls. Spreading the job to :07 and :37 costs nothing and avoids the queue.
A missed run is missed. Cron does not remember that the 14:30 run never happened because the machine was restarting. If the sync must be gap-free, have the job read a watermark from the database and fetch everything since it, so the next run catches up by itself.
Where this cron expression shows up
- Half-hourly syncs with a CRM or a billing system
- Refreshing a dashboard cache before people look at it
- Batching notification emails so nobody gets twenty at once
Common variations
-
The same, written as a list
0,30 * * * * At 0 and 30 minutes past the hour
-
Every fifteen minutes
*/15 * * * * Every 15 minutes
-
Every hour, on the hour
0 * * * * Every hour
Ranges, steps, and names are spelled out on the cheat sheet.
Questions this schedule raises
Is 0,30 * * * * better than */30 * * * *?
They are the same two minutes. The list reads more literally and survives tools that handle steps poorly; the step groups visually with the */5 and */15 neighbours. Pick by what your team reads faster.
Can I run at :15 and :45 instead?
Yes: 15,45 * * * * gives half-hourly runs offset from the hour. That offset is often the better choice, because the top of the hour is where the hourly and quarter-hourly jobs already collide.