HTTPfy

Every 2 hours

At minute 0 of every even hour (00:00, 02:00, ... 22:00): 12 runs a day.

4,380runs in the next 365 days
84runs per week
2 hoursbetween every run
04:00next run, Wed 11 Nov UTC

What it is used for

Periodic imports, cache rebuilds and backups of fast-changing data.

Field by field

FieldValueMatches
Minute00
Hour*/20, 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22
Day of month*every value
Month*every value
Day of week*every value
0 */2 * * * /path/to/job

Next 10 run times

Computed when this page loaded (2026-11-11 02:24 UTC), assuming the scheduler runs in UTC.

#UTCYour local time
1Wed 2026-11-11 04:00
2Wed 2026-11-11 06:00
3Wed 2026-11-11 08:00
4Wed 2026-11-11 10:00
5Wed 2026-11-11 12:00
6Wed 2026-11-11 14:00
7Wed 2026-11-11 16:00
8Wed 2026-11-11 18:00
9Wed 2026-11-11 20:00
10Wed 2026-11-11 22:00

Things to watch with this schedule

  • The minute field matters: * */2 * * * runs every minute during the even hours (60 runs, then an hour off). Always pin the minute.
  • For the odd hours use 0 1-23/2 * * *.

Kubernetes CronJob

Kubernetes uses the same five fields. Set spec.timeZone (stable since Kubernetes 1.27), otherwise the schedule follows the time zone of kube-controller-manager.

apiVersion: batch/v1
kind: CronJob
metadata:
  name: every-2-hours
spec:
  schedule: "0 */2 * * *"
  timeZone: "Etc/UTC"
  concurrencyPolicy: Forbid
  startingDeadlineSeconds: 300
  jobTemplate:
    spec:
      template:
        spec:
          restartPolicy: OnFailure
          containers:
            - name: job
              image: debian:bookworm-slim
              command: ["/bin/sh", "-c", "/app/run-job.sh"]

GitHub Actions

Workflow schedules use five-field cron in UTC and run only from the default branch. Runs at minute 0 are the most likely to be delayed or dropped when GitHub is busy; an odd minute such as 7 or 23 starts more reliably.

on:
  schedule:
    - cron: '0 */2 * * *'   # UTC

jobs:
  run:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - run: ./run-job.sh

systemd timer

The equivalent OnCalendar= value is *-*-* 00/2:00:00. Check it with systemd-analyze calendar '*-*-* 00/2:00:00', which prints the next elapse time. Persistent=true runs a missed job after downtime, which classic cron never does.

[Unit]
Description=Every 2 hours

[Timer]
OnCalendar=*-*-* 00/2:00:00
Persistent=true

[Install]
WantedBy=timers.target

AWS EventBridge

EventBridge rules take six fields (minute, hour, day-of-month, month, day-of-week, year) in UTC; EventBridge Scheduler can use a time zone. One of day-of-month and day-of-week must be ?, and day-of-week runs 1-7 from Sunday, so names are used here.

cron(0 0/2 * * ? *)

Quartz Scheduler (Java)

Quartz adds a leading seconds field and needs ? in either day field; days of the week are 1 (SUN) to 7 (SAT).

0 0 0/2 * * ?

Spring's @Scheduled(cron = ...) also uses six fields, but numbers days of the week 0-7 with Sunday as 0 or 7, like Unix cron; the names shown above work in both.

Related schedules