Run a job every 10 minutes
The cron expression for every 10 minutes is */10 * * * *. The */10 step in the minute field fires at :00, :10, :20, :30, :40 and :50, six times an hour and 144 times a day.
*/10****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
*/10Minute- Every 10th minute: 0, 10, 20 … 50
*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
*/10 * * * * /usr/local/bin/sync.sh >> /var/log/sync.log 2>&1Runs in the server's local time zone
on:
schedule:
- cron: "*/10 * * * *"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: "*/10 * * * *"
timeZone: "Etc/UTC"
concurrencyPolicy: ForbidWithout timeZone, the controller's zone applies
aws events put-rule \
--name sync-every-10-minutes \
--schedule-expression "cron(0/10 * * * ? *)"Six fields, and one day field must be ?
? in day-of-month or day-of-week. For a plain interval, rate(10 minutes) is simpler, though its runs are timed from when you create the rule rather than by the clock.{
"crons": [
{ "path": "/api/sync", "schedule": "*/10 * * * *" }
]
}Needs a paid plan
Other 10-minute schedules
Start the step at another minute to move runs off the round tens, or narrow the hour and weekday fields.
| Expression | Runs |
|---|---|
0,10,20,30,40,50 * * * * | Same as */10 * * * *, with the minutes listed |
5-59/10 * * * * | Every 10 minutes at :05, :15, :25, :35, :45 and :55 |
*/10 9-17 * * 1-5 | Every 10 minutes from 09:00 through 17:50, Monday through Friday |
*/10 * * * 1-5 | Every 10 minutes, all day, Monday through Friday |
Every 2, 3, 4, 6, 12 or 20 minutes
Change the step to change the interval. Each of these divides 60, so the runs stay evenly spaced across the top of the hour. Every 5, 15 and 30 minutes have pages of their own.
| Interval | Expression | Runs | Starting later |
|---|---|---|---|
| Every 2 minutes | */2 * * * * | 30 an hour: :00, :02, :04 … :58 | 1-59/2 * * * * |
| Every 3 minutes | */3 * * * * | 20 an hour: :00, :03, :06 … :57 | 1-59/3 * * * * |
| Every 4 minutes | */4 * * * * | 15 an hour: :00, :04, :08 … :56 | 2-59/4 * * * * |
| Every 6 minutes | */6 * * * * | 10 an hour: :00, :06, :12 … :54 | 3-59/6 * * * * |
| Every 12 minutes | */12 * * * * | 5 an hour: :00, :12, :24, :36, :48 | 6-59/12 * * * * |
| Every 20 minutes | */20 * * * * | 3 an hour: :00, :20, :40 | 10-59/20 * * * * |
The last column shifts the same interval off the round minutes: 10-59/20 * * * * runs at :10, :30 and :50. Every 20 minutes can also be written with the minutes listed, as 0,20,40 * * * *, and */20 9-17 * * 1-5 runs 27 times a weekday, from 09:00 through 17:40.
A step that doesn't divide 60 leaves a short gap at the top of the hour, because the count starts again at :00: */7 * * * * runs at :00, :07 … :49 and :56, then 4 minutes later at :00, and */25 * * * * runs at :00, :25 and :50, then 10 minutes later. For an exact interval like that, write one line per start time, as for every 45 minutes.
GitHub Actions runs a schedule at most once every 5 minutes, so */2, */3 and */4 won't run that often there (see GitHub Actions cron). On AWS EventBridge, rate(20 minutes) counts from when the rule was created; the clock-aligned form is cron(0/20 * * * ? *).
Every 10 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 10 minutes | Notes |
|---|---|---|
| Jenkins | H/10 * * * * | Every 10 minutes at an offset fixed per job, such as :03, :13 … :53, so jobs don't all start at once. */10 also works |
| Quartz | 0 0/10 * * * ? | Seconds come first, and one day field must be ?. 0 */10 * * * * fails with “Support for specifying both a day-of-week AND a day-of-month parameter is not implemented”. 0 5/10 * * * ? runs at :05, :15 … :55 |
| Spring @Scheduled | 0 */10 * * * * | Six fields with seconds first; ? is optional. fixedRate = 10 with timeUnit = MINUTES counts from startup instead of the clock |
| systemd timer | OnCalendar=*:0/10 | Normalizes to *-*-* *:00/10:00. *:5/10 runs at :05, :15 … :55. Check it with systemd-analyze calendar '*:0/10' |
# /etc/systemd/system/job.timer (with a matching job.service)
[Timer]
OnCalendar=*:0/10
Persistent=true
[Install]
WantedBy=timers.targetPersistent=true runs a missed job once when the machine is back on, which cron never does. For 10 minutes after the last run finished rather than on the clock, use OnUnitActiveSec=10min with OnBootSec=10min instead of OnCalendar.