Cron Expression: 0 */2 * * *
Every 2 hours (00:00, 02:00, 04:00, ...).
Field Breakdown
| Field | Value |
|---|---|
| Minute | 0 |
| Hour | */2 |
| Day of Month | * |
| Month | * |
| Day of Week | * |
Common Use Case
Less frequent batch jobs, throttled imports.
Equivalents in Popular Schedulers
crontab (Linux/macOS)
0 */2 * * * /path/to/your/script.sh
GitHub Actions (.github/workflows/*.yml)
on:
schedule:
- cron: '0 */2 * * *'
AWS EventBridge (cron format)
cron(0 */2 * * *) # Note: AWS uses 6 fields with year
Kubernetes CronJob
spec: schedule: "0 */2 * * *"