Skip to main content

Every hour during business hours

Hourly syncs, alerts or reports only while the team is working, Monday to Friday.

Checked with the same parser Bex uses to validate schedules. Next run times are computed in your browser.

Cron expression

0 9-17 * * 1-5
minute0
hour9-17
day of month*
month*
day of week1-5

Watch out for

  • 9-17 includes the 17:00 run, so the last run is at 5 PM. Business hours are evaluated in UTC on Bex.
  • Bex does not set a per-job time zone: the cluster controller's clock decides. Bex's own next-run projection assumes UTC, as shown here.

Next runs

Calculating the next runs…

Edit or check this expression in the cron checker

How to write it

crontab

0 9-17 * * 1-5 /usr/local/bin/my-job

Kubernetes CronJob

apiVersion: batch/v1
kind: CronJob
metadata:
  name: my-job
spec:
  schedule: "0 9-17 * * 1-5"
  concurrencyPolicy: Forbid
  jobTemplate:
    spec:
      template:
        spec:
          restartPolicy: Never
          containers:
            - name: my-job
              image: my-image

GitHub Actions

on:
  schedule:
    - cron: "0 9-17 * * 1-5"

render.yaml (Bex cron job)

services:
  - name: my-cron-job
    type: cron
    runtime: docker
    schedule: "0 9-17 * * 1-5"

Related schedules

Run this schedule as a cron job on Bex: declare it in render.yaml and Bex keeps the run history and logs for every execution.

Cron jobs on Bex