Cron Expression for Every 2 Minutes
*/2 * * * *Every 2 minutes. Near-real-time syncs where running every minute would overlap with the previous run.
Field-by-field breakdown
| Field | Value | Allowed range | Meaning |
|---|---|---|---|
| Minute | */2 | 0–59 | every 2 minutes |
| Hour | * | 0–23 | every hour |
| Day of month | * | 1–31 | every day of the month |
| Month | * | 1–12 | every month |
| Day of week | * | 0–6 (Sunday = 0) | every day of the week |
Next 5 runs (your time zone)
Calculating upcoming runs…
Cron uses the time zone of the machine or scheduler that runs it, which is often UTC on servers.
How to use this schedule
crontab
*/2 * * * * /path/to/script.sh >> /var/log/job.log 2>&1Kubernetes CronJob
apiVersion: batch/v1
kind: CronJob
metadata:
name: my-job
spec:
schedule: "*/2 * * * *"
jobTemplate:
spec:
template:
spec:
containers:
- name: my-job
image: busybox
command: ["sh", "-c", "echo running"]
restartPolicy: OnFailureGitHub Actions
GitHub Actions doesn't support this schedule: the shortest allowed interval is every 5 minutes. Use */5 * * * * instead.
Frequently Asked Questions
What is the cron expression for every 2 minutes?
Use "*/2 * * * *". In plain English: Every 2 minutes.
What does "*/2 * * * *" mean?
Minute: every 2 minutes; Hour: every hour; Day of month: every day of the month; Month: every month; Day of week: every day of the week.