Every Sunday
The classic weekly job: weekly backups, digests and log archiving.
Checked with the same parser Bex uses to validate schedules. Next run times are computed in your browser.
Cron expression
0 0 * * 0| minute | 0 |
|---|---|
| hour | 0 |
| day of month | * |
| month | * |
| day of week | 0 |
Watch out for
- Sunday is 0 on Bex.
7is accepted by some cron implementations but Bex rejects it, and so does its Kubernetes controller. - 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 0 * * 0 /usr/local/bin/my-job
Kubernetes CronJob
apiVersion: batch/v1
kind: CronJob
metadata:
name: my-job
spec:
schedule: "0 0 * * 0"
concurrencyPolicy: Forbid
jobTemplate:
spec:
template:
spec:
restartPolicy: Never
containers:
- name: my-job
image: my-image
GitHub Actions
on:
schedule:
- cron: "0 0 * * 0"
render.yaml (Bex cron job)
services:
- name: my-cron-job
type: cron
runtime: docker
schedule: "0 0 * * 0"
Related schedules
- Every Saturday
0 0 * * 6 - Every Monday
0 0 * * 1
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