What 0 */8 * * * does
The minute field is 0, so the job fires exactly on the hour. The */8 step in the hour field means 'starting at midnight, then every 8 hours'.
It fires at 00:00, 08:00, 16:00 — 3 runs per day.
Why the leading zero matters
A common error is writing * */8 * * * instead. That leaves the minute field as *, which means the job runs every minute for a whole hour, every 8 hours — 60 executions instead of one. Always pin the minute field when you use an hour step.
Frequently asked questions
What is the cron expression for every 8 hours?
0 */8 * * *. The 0 minute pins it to the top of the hour and */8 steps through the hours.
Does 0 */8 * * * run at midnight?
Yes. The step starts counting from hour 0, so midnight is always included.
Related cron expressions
Browse the full cron expression reference, or build your own expression from scratch.