Menu

1 / 2

Same Cron Line, Different Schedule: 5 Ways It Changes Meaning on GitHub Actions, Kubernetes and Cloudflare

DEV Community: kubernetes·FindUtils·1 day ago
#sm3K9wK7
#devtokubernetes#devto#dev#croniter#cron
Long article (2228 words) — no AI summary yet.
Reading 0:00
15s threshold

A cron line looks like the most portable thing in your repo. 0 9 * * 1 is five fields, and every scheduler accepts five fields. So when a job moves from a server's crontab to a GitHub Actions workflow, a Kubernetes CronJob or a Cloudflare Worker, the line usually gets copied as is.

The text survives the move. What it means doesn't always survive. I took a handful of everyday lines and checked them in two ways:

Ran them through two cron libraries on my machine: croniter 6.2.4 (Python, classic crontab rules) and robfig/cron v3.0.1 (Go), which is the parser the Kubernetes CronJob controller imports (it's listed in Kubernetes' own go.mod ).

Read the current docs for GitHub Actions, Kubernetes and Cloudflare Cron Triggers for anything I couldn't run.

I didn't run jobs on a real cluster, a real GitHub repository or a real Worker, so the platform rows below are what the docs say, and the library rows are what I measured.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.