Cron every 3 minutes
The cron expression */3 * * * * runs a job every 3 minutes. The next runs are 2026-11-27 03:30 and 2026-11-27 03:33 UTC. The shortest gap between runs is 3 minutes, so a heartbeat monitor with a 5-minute grace period catches a missed run.
| minute | hour | day of month | month | day of week |
|---|---|---|---|---|
| */3 | * | * | * | * |
Next runs (UTC)
- Fri 2026-11-27 03:30 UTC (+00:00) · in 14s
- Fri 2026-11-27 03:33 UTC (+00:00) · in 3m
- Fri 2026-11-27 03:36 UTC (+00:00) · in 6m
- Fri 2026-11-27 03:39 UTC (+00:00) · in 9m
- Fri 2026-11-27 03:42 UTC (+00:00) · in 12m
- Fri 2026-11-27 03:45 UTC (+00:00) · in 15m
- Fri 2026-11-27 03:48 UTC (+00:00) · in 18m
- Fri 2026-11-27 03:51 UTC (+00:00) · in 21m
- Fri 2026-11-27 03:54 UTC (+00:00) · in 24m
- Fri 2026-11-27 03:57 UTC (+00:00) · in 27m
Notes for this schedule
flock -n /tmp/my-job.lock so a new run is skipped while the previous one is still going.This schedule in numbers
- Fires 480 times on each day it runs: 175,200 times in 2026.
- Converted to systemd:
OnCalendar=*-*-* *:00/3:00, the line used in the timer below;systemd-analyze calendarprints its next elapse times so you can compare them with the list here. - If the server's timezone were America/New_York: on Sunday 14 March 2027 the New York day is 23 hours long, so a server in that zone runs this schedule 460 times instead of 480 (wildcard schedules follow the wall clock); on Sunday 7 November 2027 the New York day is 25 hours long, so a server in that zone runs this schedule 500 times instead of 480 (wildcard schedules follow the wall clock).
- If the server's timezone were Europe/London: on Sunday 28 March 2027 the London day is 23 hours long, so a server in that zone runs this schedule 460 times instead of 480 (wildcard schedules follow the wall clock); on Sunday 31 October 2027 the London day is 25 hours long, so a server in that zone runs this schedule 500 times instead of 480 (wildcard schedules follow the wall clock).
- Runs every 3 minutes at its fastest: Kubernetes accepts that, GitHub Actions' shortest schedule is every 5 minutes, so it won't run this.
Next 5 runs on a UTC server, with India time
| UTC | IST (UTC+05:30) |
|---|---|
| Fri 27 Nov 2026, 09:00 | |
| Fri 27 Nov 2026, 09:03 | |
| Fri 27 Nov 2026, 09:06 | |
| Fri 27 Nov 2026, 09:09 | |
| Fri 27 Nov 2026, 09:12 |
Examples
*/3 * * * * /usr/local/bin/my-job.sh && curl -fsS -m 10 --retry 3 -o /dev/null https://puzaricloud.in/ping/<your-token>
# /etc/systemd/system/my-job.timer [Unit] Description=Run my-job (every 3 minutes) [Timer] OnCalendar=*-*-* *:00/3:00 Persistent=true [Install] WantedBy=timers.target
# /etc/systemd/system/my-job.service [Unit] Description=my-job [Service] Type=oneshot ExecStart=/usr/local/bin/my-job.sh # runs only if ExecStart succeeded ExecStartPost=/usr/bin/curl -fsS -m 10 --retry 3 -o /dev/null https://puzaricloud.in/ping/<your-token>
Check the calendar spec with systemd-analyze calendar "*-*-* *:00/3:00", then systemctl enable --now my-job.timer. Persistent=true runs a missed job at boot. Convert this schedule to Quartz or AWS cron() →
apiVersion: batch/v1
kind: CronJob
metadata:
name: my-job
spec:
schedule: "*/3 * * * *"
timeZone: "Etc/UTC" # Kubernetes 1.27+; otherwise the controller's timezone
concurrencyPolicy: Forbid # don't start a new run while one is active
startingDeadlineSeconds: 300 # still start if the controller was briefly down
jobTemplate:
spec:
backoffLimit: 2
template:
spec:
restartPolicy: OnFailure
containers:
- name: job
image: your-image:tag
command: ["/bin/sh", "-c", "/app/run-job.sh && curl -fsS -m 10 --retry 3 -o /dev/null https://puzaricloud.in/ping/<your-token>"]
Common mistakes
timedatectl or date. cronie (RHEL, Fedora, Arch) accepts CRON_TZ=Asia/Kolkata at the top of a crontab; Debian/Ubuntu cron does not.0 0 13 * 5 runs on every 13th and every Friday, not only on Friday the 13th.% is turned into a newline (everything after it goes to the command's stdin). Write date +\%F, not date +%F.PATH (often just /usr/bin:/bin), no login shell and no .bashrc. Use absolute paths and set variables at the top of the crontab.How to get alerted when it doesn't run
A cron job that stops running looks exactly like one that's working: no errors, no output. The reliable fix is a heartbeat (dead man's switch): the job pings a URL each time it finishes, and the monitor alerts you when a ping is late.
- Create a heartbeat in Vigil and choose cron schedule: */3 * * * *, timezone of your server.
- Set a grace period of about 5 minutes: long enough for a normal run to finish, short enough that you hear about it quickly.
- Add the ping to the end of the command (above). && means only successful runs ping; use /ping/<token>/$? to report the exit code, and /start to catch jobs that hang.
Watch this schedule — get alerted if it doesn't run
More: how to monitor cron jobs (exit codes, run time, logs) · heartbeat monitoring, explained
Vigil tells you when a run is missed
Vigil heartbeats understand cron expressions and timezones, so they know exactly when each run is due. Missed, failed or stuck runs alert you on email, Slack, Telegram, Discord or a webhook, and the history shows every run's duration.