Every 12 hours
Twice-daily jobs such as refreshing exchange-rate tables or reconciling payments.
Checked with the same parser Bex uses to validate schedules. Next run times are computed in your browser.
Cron expression
0 */12 * * *| minute | 0 |
|---|---|
| hour | */12 |
| day of month | * |
| month | * |
| day of week | * |
Watch out for
- This runs at 00:00 and 12:00. If you want 09:00 and 21:00 instead, list the hours explicitly:
0 9,21 * * *. - 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…
How to write it
crontab
0 */12 * * * /usr/local/bin/my-job
Kubernetes CronJob
apiVersion: batch/v1
kind: CronJob
metadata:
name: my-job
spec:
schedule: "0 */12 * * *"
concurrencyPolicy: Forbid
jobTemplate:
spec:
template:
spec:
restartPolicy: Never
containers:
- name: my-job
image: my-image
GitHub Actions
on:
schedule:
- cron: "0 */12 * * *"
render.yaml (Bex cron job)
services:
- name: my-cron-job
type: cron
runtime: docker
schedule: "0 */12 * * *"
Related schedules
- Every 6 hours
0 */6 * * * - Twice a day
0 0,12 * * *
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