How "Every Hour" (0 * * * *) Works Across Schedulers
The standard 5-field POSIX cron expression 0 * * * * schedules execution every hour (00:00, 01:00, 02:00, ... 23:00), totaling 24 runs/day (168 runs/week). Teams commonly rely on this cadence for hourly analytics rollups, S3 log compaction, sitemap refreshes, exchange-rate updates, and usage-based billing meters. When deploying to AWS EventBridge Rules or Scheduler, translate it to the 6-field syntax cron(0 * * * ? *) with the mandatory ? wildcard and trailing Year field; for 6-field seconds-first engines like Spring @Scheduled or Azure Functions NCRONTAB, use 0 0 * * * *.
0 * * * * is equivalent to the @hourly macro in Vixie cron, Kubernetes, and Spring 5.3+. Avoid putting * in the minute field (* * * * *), which runs 60 times an hour instead of once.
- POSIX / K8s / GitHub0 * * * * — Once per hour at minute :00 (equivalent to @hourly) (00:00, 01:00, 02:00, ... 23:00).
- AWS EventBridge & SpringAWS: cron(0 * * * ? *) · Spring / Azure 6-field: 0 0 * * * *.
- Execution Cadence24 runs/day (168 runs/week). Typical workloads: hourly analytics rollups, S3 log compaction, sitemap refreshes, exchange-rate updates, and usage-based billing meters.
What is the exact cron expression for every hour?
Use 0 * * * * for Linux crontab, Kubernetes CronJob, GitHub Actions, and GCP Cloud Scheduler. Use cron(0 * * * ? *) for AWS EventBridge, and 0 0 * * * * for Spring @Scheduled and Azure Functions NCRONTAB.
What is the most common mistake when writing an hourly cron expression?
Writing * */1 * * * instead of 0 * * * *. Putting * in the minute field executes the job every single minute of every hour (1,440 times/day) instead of once per hour.