Cron Expression for Every 30 Minutes
*/30 * * * *Every 30 minutes. Syncing inventory or prices, or refreshing search indexes.
Field-by-field breakdown
| Field | Value | Allowed range | Meaning |
|---|---|---|---|
| Minute | */30 | 0–59 | every 30 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
*/30 * * * * /path/to/script.sh >> /var/log/job.log 2>&1Kubernetes CronJob
apiVersion: batch/v1
kind: CronJob
metadata:
name: my-job
spec:
schedule: "*/30 * * * *"
jobTemplate:
spec:
template:
spec:
containers:
- name: my-job
image: busybox
command: ["sh", "-c", "echo running"]
restartPolicy: OnFailureGitHub Actions
on:
schedule:
- cron: '*/30 * * * *' # UTCFrequently Asked Questions
What is the cron expression for every 30 minutes?
Use "*/30 * * * *". In plain English: Every 30 minutes.
What does "*/30 * * * *" mean?
Minute: every 30 minutes; Hour: every hour; Day of month: every day of the month; Month: every month; Day of week: every day of the week.