Skip to content

Cron syntax

Scheduled jobs and function schedules use one cron form: six fields, seconds first. The platform validates it on create, update, SDK sync and function publish, so a stored expression always produces fire times. For how jobs fire and are delivered see Scheduled jobs.

┌──────────── second (0-59)
│ ┌────────── minute (0-59)
│ │ ┌──────── hour (0-23)
│ │ │ ┌────── day of month (1-31)
│ │ │ │ ┌──── month (1-12 or JAN-DEC)
│ │ │ │ │ ┌── day of week (0-6 or SUN-SAT; Sunday is 0)
│ │ │ │ │ │
* * * * * *
Field Allowed values Names
Second 0 to 59
Minute 0 to 59
Hour 0 to 23
Day of month 1 to 31
Month 1 to 12 JAN to DEC
Day of week 0 to 6, Sunday is 0 SUN to SAT

Names are case-insensitive. 7 is not accepted as Sunday: use 0 or SUN.

Syntax Meaning Example
* Every value * * * * * *: every second
? The same as * (any value) 0 0 0 * * ?
a,b,c A list 0 0 12 1,15 * *: noon on the 1st and 15th
a-b An inclusive range 0 0 9 * * MON-FRI
*/n Every n-th value across the whole range 0 */5 * * * *: every five minutes
a-b/n Every n-th value inside a range 0 0 8-18/2 * * *: 08:00, 10:00, 12:00, 14:00, 16:00, 18:00
a/n From a, every n-th value to the top of the range 0 10/15 * * * *: minutes 10, 25, 40, 55

Fields are separated by whitespace. A job may carry several expressions (crons), and it fires when any of them does.

When both the day-of-month and the day-of-week field are restricted (neither is *), a time matches when either field matches. This is standard cron behaviour and often surprises people:

0 0 8 13 * 5 is “08:00 on the 13th of every month, and also 08:00 every Friday”, not “Friday the 13th”.

When one of the two is *, the other alone decides.

An expression is evaluated in the job’s timezone (timezone, an IANA name such as Africa/Johannesburg; UTC by default, and an unknown name falls back to UTC). All timestamps on the wire are UTC. Around daylight-saving changes the schedule follows the timezone’s wall clock; prefer UTC for jobs that must run a fixed number of hours apart.

Anything other than exactly six whitespace-separated fields is 400 CRON_INVALID_SHAPE:

Input Why it is refused
0 0 * * * Five fields (POSIX form). Seconds are required.
0 0 0 * * * * Seven fields (a year). Not supported.
@daily, @hourly, @every 5m Descriptors are not accepted.
0 0 0 * * 7 7 is above the day-of-week maximum of 6.
CRON_TZ=UTC 0 0 0 * * * A timezone prefix. Set the job’s timezone instead.

A six-field expression that is out of range or unparseable is rejected with INVALID_CRON, naming the expression.

Five-field expressions that already existed

Section titled “Five-field expressions that already existed”

Earlier releases accepted five-field expressions at save time, but they never fired. Migration 111 converted every stored five-field expression by prefixing 0 (the standard meaning: “at second 0 of each matching minute”), and, because such a job had never run, paused any of them that was ACTIVE. Nothing started firing unexpectedly; an operator resumes the ones that are wanted. Seven-field expressions have no equivalent and were left as they were; the scheduler logs a warning for any stored expression it cannot parse. New five-field definitions are rejected, not converted: nothing is converted at the API.

  • A (job, scheduled tick) fires at most once, enforced in the database, not only by the scheduler’s leader gate, so a failover or a second scheduler never doubles a firing.
  • Missed ticks are skipped to the latest. After a long outage only the most recent missed slot fires; older ones are dropped.
  • The firing envelope carries concurrent and timeoutSeconds. The platform does not enforce concurrent: the receiver does. timeoutSeconds is also the platform’s HTTP timeout for the call (default 10 s, capped at 300 s).
  • An instance left IN_FLIGHT by a crash is marked DELIVERY_FAILED with an ABANDONED delivery error after the call timeout plus a margin, and is never re-sent.

Next three firing times from Tuesday 2026-11-10 09:17:42 UTC:

Expression Meaning Next three firings (UTC)
0 * * * * * Every minute, at second 0 Tue 09:18:00, 09:19:00, 09:20:00
*/15 * * * * * Every 15 seconds Tue 09:17:45, 09:18:00, 09:18:15
0 */5 * * * * Every five minutes Tue 09:20:00, 09:25:00, 09:30:00
0 0 * * * * Every hour on the hour Tue 10:00, 11:00, 12:00
0 30 9 * * * Daily at 09:30 Tue 11-10 09:30, Wed 11-11 09:30, Thu 11-12 09:30
0 0 0 * * * Daily at midnight Wed 11-11 00:00, Thu 11-12 00:00, Fri 11-13 00:00
0 0 9 * * MON-FRI 09:00 on weekdays Wed 11-11, Thu 11-12, Fri 11-13 (09:00 each)
0 0 2 * * 6 02:00 every Saturday Sat 11-14, Sat 11-21, Sat 11-28
0 0 0 * * 0 Midnight every Sunday Sun 11-15, Sun 11-22, Sun 11-29
0 0 0 1 * * Midnight on the 1st of each month Tue 2026-12-01, Fri 2027-01-01, Mon 2027-02-01
0 0 12 1,15 * * Noon on the 1st and 15th Sun 2026-11-15, Tue 2026-12-01, Tue 2026-12-15
0 0 8 13 * 5 08:00 on the 13th or any Friday Fri 11-13, Fri 11-20, Fri 11-27 (08:00 each)
0 15 10 * JAN-MAR * 10:15 daily in January to March Fri 2027-01-01, Sat 01-02, Sun 01-03
0 0 0 29 2 * Midnight on 29 February Tue 2028-02-29, Sun 2032-02-29, Fri 2036-02-29

These were computed with the same parser the platform uses (robfig/cron v3, six fields).