Run a job every 15 minutes
The cron expression for every 15 minutes is */15 * * * *. The */15 step in the minute field fires at :00, :15, :30 and :45, four times an hour and 96 times a day.
*/15****Next 5 runs
Vercel always runs schedules in UTC, and GitHub Actions does unless you set a time zone. Crontab and Kubernetes use the server's time zone.
Field by field
*/15Minute- Every 15th minute: 0, 15, 30, 45
*Hour- Every hour, 0 to 23
*Day of month- Every day of the month
*Month- Every month
*Day of week- Every day of the week
By platform
Most schedulers take the same five fields. The wrapper, time zone and limits differ.
# m h dom mon dow command
*/15 * * * * /usr/local/bin/sync.sh >> /var/log/sync.log 2>&1Runs in the server's local time zone
on:
schedule:
- cron: "*/15 * * * *"Runs in UTC unless you set a time zone
timezone next to cron to use local time. Runs often start late when GitHub is busy, most of all at the start of an hour. In a public repository, GitHub turns the schedule off after 60 days without activity.spec:
schedule: "*/15 * * * *"
timeZone: "Etc/UTC"
concurrencyPolicy: ForbidWithout timeZone, the controller's zone applies
aws events put-rule \
--name sync-every-15-minutes \
--schedule-expression "cron(0/15 * * * ? *)"Six fields, and one day field must be ?
? in day-of-month or day-of-week. For a plain interval, rate(15 minutes) is simpler, though its runs are timed from when you create the rule rather than by the clock.{
"crons": [
{ "path": "/api/sync", "schedule": "*/15 * * * *" }
]
}Needs a paid plan
Other 15-minute schedules
Start the step at another minute to move runs off the quarter hours, or narrow the hour and weekday fields.
| Expression | Runs |
|---|---|
0,15,30,45 * * * * | Same as */15 * * * *, with the minutes listed |
5-59/15 * * * * | Every 15 minutes at :05, :20, :35 and :50 |
*/15 9-17 * * 1-5 | Every 15 minutes from 09:00 through 17:45, Monday through Friday |
Every 15 minutes between two times
An hour range covers every minute of its last hour, so */15 9-17 * * * keeps going until 17:45. To stop at 17:00, end the range an hour earlier and add the last run as its own line. A window that starts or ends on a quarter past or half past the hour needs a line for that partial hour too:
# Every 15 minutes from 08:30 to 17:00, Monday to Friday
30,45 8 * * 1-5 /usr/local/bin/job.sh
*/15 9-16 * * 1-5 /usr/local/bin/job.sh
0 17 * * 1-5 /usr/local/bin/job.sh| Window | Lines | Runs |
|---|---|---|
| 09:00 to 17:45 | */15 9-17 * * * | 36 a day, the last at 17:45 |
| 09:00 to 17:00 | */15 9-16 * * * and 0 17 * * * | 33 a day, the last at 17:00 |
| 08:30 to 17:00 | 30,45 8 * * *, */15 9-16 * * * and 0 17 * * * | 35 a day: 08:30, 08:45, 09:00 … 16:45, 17:00 |
| 22:00 to 06:00 | */15 22-23,0-5 * * * and 0 6 * * * | 33 a night. A range can't wrap past midnight, so list both parts |
The hours are in the cron daemon's time zone, usually the server's. GitHub Actions uses UTC unless you add timezone, and EventBridge rules always use UTC. In GitHub Actions give each line its own - cron: entry; a Kubernetes CronJob or an EventBridge rule takes one expression, so make one per line.
Every 15 minutes in Jenkins, Quartz, Spring and systemd
Schedulers outside crontab write the same schedule differently: Jenkins spreads jobs with H, Quartz and Spring add a seconds field, and systemd uses calendar events.
| Scheduler | Every 15 minutes | Notes |
|---|---|---|
| Jenkins | H/15 * * * * | Every 15 minutes at an offset fixed per job, such as :07, :22, :37 and :52, so jobs don't all start at once. */15 also works |
| Quartz | 0 0/15 * * * ? | Seconds come first, and one day field must be ?. 0 */15 * * * * fails with “Support for specifying both a day-of-week AND a day-of-month parameter is not implemented” |
| Spring @Scheduled | 0 */15 * * * * | Six fields with seconds first; ? is optional. fixedRate = 15 with timeUnit = MINUTES counts from startup instead of the clock |
| systemd timer | OnCalendar=*:0/15 | Normalizes to *-*-* *:00/15:00. Check it with systemd-analyze calendar '*:0/15' |
# /etc/systemd/system/job.timer (with a matching job.service)
[Timer]
OnCalendar=*:0/15
Persistent=true
[Install]
WantedBy=timers.targetPersistent=true runs a missed job once when the machine is back on, which cron never does. The Quartz, Spring and systemd forms were checked with Quartz 2.5.1, Spring 6.2 and systemd-analyze.