Cron every 15 minutes during business hours
The cron expression */15 9-17 * * 1-5 runs a job every 15 minutes, between 09:00 and 17:59, Monday through Friday. The next runs are 2026-11-27 09:00 and 2026-11-27 09:15 UTC. The shortest gap between runs is 15 minutes, so a heartbeat monitor with a 10-minute grace period catches a missed run.
| minute | hour | day of month | month | day of week |
|---|---|---|---|---|
| */15 | 9-17 | * | * | 1-5 |
Next runs (UTC)
- Fri 2026-11-27 09:00 UTC (+00:00) · in 5h 30m
- Fri 2026-11-27 09:15 UTC (+00:00) · in 5h 45m
- Fri 2026-11-27 09:30 UTC (+00:00) · in 6h 0m
- Fri 2026-11-27 09:45 UTC (+00:00) · in 6h 15m
- Fri 2026-11-27 10:00 UTC (+00:00) · in 6h 30m
- Fri 2026-11-27 10:15 UTC (+00:00) · in 6h 45m
- Fri 2026-11-27 10:30 UTC (+00:00) · in 7h 0m
- Fri 2026-11-27 10:45 UTC (+00:00) · in 7h 15m
- Fri 2026-11-27 11:00 UTC (+00:00) · in 7h 30m
- Fri 2026-11-27 11:15 UTC (+00:00) · in 7h 45m
Notes for this schedule
9-16 if you need it to stop at 17:00, and add a separate 0 17 * * 1-5 line for the 17:00 run.timedatectl or date, and shift the hours accordingly.This schedule in numbers
- Fires 36 times on each day it runs: 9,396 times in 2026, on 261 of the year's 365 days.
- Converted to systemd:
OnCalendar=Mon..Fri *-*-* 09..17:00/15:00, the line used in the timer below;systemd-analyze calendarprints its next elapse times so you can compare them with the list here. - None of its 36 daily runs falls in the skipped or repeated hour of the next DST changes in New York or London, so a server in either zone still runs it 36 times on those days.
Next 5 runs on a UTC server, with India time
| UTC | IST (UTC+05:30) |
|---|---|
| Fri 27 Nov 2026, 14:30 | |
| Fri 27 Nov 2026, 14:45 | |
| Fri 27 Nov 2026, 15:00 | |
| Fri 27 Nov 2026, 15:15 | |
| Fri 27 Nov 2026, 15:30 |
Examples
*/15 9-17 * * 1-5 /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 15 minutes during business hours) [Timer] OnCalendar=Mon..Fri *-*-* 09..17:00/15: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 "Mon..Fri *-*-* 09..17:00/15: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: "*/15 9-17 * * 1-5"
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>"]
on:
schedule:
- cron: "*/15 9-17 * * 1-5" # UTC unless you add timezone: under it
workflow_dispatch: {} # lets you run it by hand too
jobs:
run:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: ./run-job.sh
- name: Tell Vigil the job ran
if: success()
run: curl -fsS -m 10 --retry 3 -o /dev/null https://puzaricloud.in/ping/${{ secrets.VIGIL_PING_TOKEN }}
GitHub reads schedules in UTC unless the entry sets timezone: (an IANA name), can delay them at busy times, and disables scheduled workflows in public repos after 60 days without activity.
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: */15 9-17 * * 1-5, timezone of your server.
- Set a grace period of about 10 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.