CronCanary

Cron job every 4 minutes

To run a cron job every 4 minutes, use */4 * * * *. In plain English: every 4 minutes. That is 360 times a day.

“Every 4 minutes”

*/4
Minute
*
Hour
*
Day of month
*
Month
*
Day of week

Next runs

  1. Calculating…
Will you notice if this job stops running?

Cron fails silently. Add one curl line and we’ll email you the minute a run is missed.

What each field means

FieldValueMeaning
Minute*/4every 4 minutes, starting at 0
Hour*every hour
Day of month*every day of month
Month*every month
Day of week*every day of week

Copy-paste examples

Each example ends with a heartbeat ping, so you hear about it when a run is missed. Get your ping URL (free).

crontab (Linux / macOS)
# crontab -e
*/4 * * * * /path/to/job.sh && curl -fsS -m 10 --retry 3 https://croncanary.xyz/ping/YOUR-PING-TOKEN > /dev/null

# report failures too:
*/4 * * * * /path/to/job.sh && curl -fsS -m 10 https://croncanary.xyz/ping/YOUR-PING-TOKEN || curl -fsS -m 10 https://croncanary.xyz/ping/YOUR-PING-TOKEN/fail

⚠︎ crontab uses the server's local time zone (or CRON_TZ / TZ if set).

GitHub Actions
on:
  schedule:
    - cron: '*/4 * * * *'

jobs:
  every-4-minutes:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - run: ./job.sh
      - if: success()
        run: curl -fsS -m 10 --retry 3 https://croncanary.xyz/ping/YOUR-PING-TOKEN
      - if: failure()
        run: curl -fsS -m 10 https://croncanary.xyz/ping/YOUR-PING-TOKEN/fail

⚠︎ GitHub Actions won't run schedules more often than every 5 minutes, and scheduled runs are often delayed under load. Schedules run in UTC.

Kubernetes CronJob
apiVersion: batch/v1
kind: CronJob
metadata:
  name: every-4-minutes
spec:
  schedule: "*/4 * * * *"
  timeZone: "Etc/UTC"
  concurrencyPolicy: Forbid
  jobTemplate:
    spec:
      template:
        spec:
          restartPolicy: OnFailure
          containers:
            - name: job
              image: your-image:latest
              command: ["/bin/sh", "-c", "./job.sh && wget -qO- https://croncanary.xyz/ping/YOUR-PING-TOKEN"]
Vercel Cron (vercel.json)
{
  "crons": [{ "path": "/api/every-4-minutes", "schedule": "*/4 * * * *" }]
}

// at the end of your /api/every-4-minutes handler:
await fetch("https://croncanary.xyz/ping/YOUR-PING-TOKEN");

⚠︎ On the Vercel Hobby plan, cron jobs can run at most once per day. This schedule needs a Pro plan.

Your job runs every 4 minutes. Will you know when it doesn’t?

Backups that stopped weeks ago, invoices that never went out, a cache that quietly went stale. Add a single curl line and you get an email the minute a run is missed, plus another when it recovers.

Start monitoring free →

5 monitors free forever · no credit card · 30-second setup

  1. 1Create a monitorPaste your schedule. We work out when each ping should arrive.
  2. 2Add the pingcurl your unique URL at the end of the job.
  3. 3Get alertedA ping is late or reports a failure, and you get an email or Slack message.

FAQ

What is the cron expression for every 4 minutes?
Use */4 * * * *. It means: every 4 minutes. That is 360 times a day.
Which time zone does "*/4 * * * *" run in?
It depends on the scheduler. crontab uses the server's local time zone (or CRON_TZ when set). GitHub Actions and Vercel Cron always use UTC. Kubernetes uses UTC unless you set spec.timeZone.
How do I know if my cron job every 4 minutes stopped running?
Cron doesn't tell you when a job fails or never starts. Add a heartbeat: after the job succeeds, request a unique ping URL. CronCanary expects that ping 360 times a day and emails you if it doesn't arrive on time. The first 5 monitors are free.
What happens if a run takes longer than the interval?
Cron starts the next run anyway, so runs can overlap. Wrap the command with flock (for example: flock -n /tmp/job.lock /path/to/job.sh) or set concurrencyPolicy: Forbid in Kubernetes.

Related schedules