Cron Expression for Every 3 Hours: 0 */3 * * *

Runs 8 times per day (00:00, 03:00, 06:00, 09:00, 12:00, 15:00, 18:00, 21:00). Ideal for: Multi-region cache invalidation, ML feature store refreshes, and competitor price monitors.

0 */3 * * *
Runs 8 times per day (00:00, 03:00, 06:00, 09:00, 12:00, 15:00, 18:00, 21:00)

5-Field Cron Breakdown

0
Minute
At minute 00
*/3
Hour
Every 3rd hour (0, 3, 6...21)
*
Day of Month
Every day
*
Month
Every month
*
Day of Week
Every weekday

Live Next-10-Runs Simulator (UTC & Local Time)

Runs 8 times per day (00:00, 03:00, 06:00, 09:00, 12:00, 15:00, 18:00, 21:00)

Run #UTC Execution TimeSelected TimezoneRelative
Calculating next 10 runs locally...

Copy-Paste Snippets Across Platforms

Linux Crontab (Overlap-Safe with flock)

0 */3 * * * /usr/bin/flock -n /tmp/my-job.lock /usr/local/bin/job.sh >> /var/log/my-job.log 2>&1

GitHub Actions Workflow YAML

on:
  schedule:
    - cron: '0 */3 * * *' # UTC only
  workflow_dispatch: {}

Quartz (6-Field) & AWS EventBridge

Quartz 6-field: 0 0 */3 * * ?
AWS EventBridge: cron(0 */3 * * ? *)

Kubernetes CronJob Spec

apiVersion: batch/v1
kind: CronJob
metadata:
  name: scheduled-job
spec:
  schedule: "0 */3 * * *"
  timeZone: "Etc/UTC"
  concurrencyPolicy: Forbid

Production Pitfalls & Best Practices

Key Pitfall: Check whether your server timezone is UTC; `*/3` in UTC aligns cleanly with 3-hour billing and analytics buckets.
Common Use Cases: Multi-region cache invalidation, ML feature store refreshes, and competitor price monitors.
JetBrains SQL Explain Lens

Slow Nightly Cron Queries? Inspect SQL Plans Instantly in Your IDE

Optimize heavy nightly ETL, billing, and cleanup cron queries with JetBrains SQL Explain Lens and our production database runbooks available on Gumroad.

Frequently Asked Questions

What does the cron expression `0 */3 * * *` mean?

`0 */3 * * *` means: Runs 8 times per day (00:00, 03:00, 06:00, 09:00, 12:00, 15:00, 18:00, 21:00). Its 5 fields map to Minute=0, Hour=*/3, Day-of-Month=*, Month=*, and Day-of-Week=*.

How do I run `0 */3 * * *` in GitHub Actions?

Add `on: schedule: - cron: '0 */3 * * *'` to your workflow YAML. Remember GitHub Actions always interprets cron schedules in UTC and enforces a minimum 5-minute interval.

What is the Quartz / AWS EventBridge equivalent of `0 */3 * * *`?

In 6-field Quartz cron use `0 0 */3 * * ?` (adding leading seconds `0` and `?` mutual exclusion). In AWS EventBridge use `cron(0 */3 * * ? *)`.

Related Cron Recipes