Schedule Syntax

This reference documents the schedule syntax: fuzzy schedules (recommended), time constraints, and standard cron expressions.

Schedule expressions convert to cron format. There are two types:

  • Fuzzy schedules (recommended) scatter execution times across workflows to prevent load spikes. Each workflow’s time is based on its file path and does not change across recompiles.
  • Fixed schedules run at specific times. Many workflows that share a fixed time create server load.
PatternExampleResultType
DailydailyScattered timeFuzzy
daily on weekdaysMon-Fri, scattered timeFuzzy
daily around 14:0013:00-15:00 windowFuzzy
daily around 9am on weekdaysMon-Fri 8am-10amFuzzy
daily between 9:00 and 17:009am-5pm windowFuzzy
daily between 9:00 and 17:00 on weekdaysMon-Fri 9am-5pmFuzzy
HourlyhourlyScattered minuteFuzzy
hourly on weekdaysMon-Fri, scattered minuteFuzzy
every 2hEvery 2 hoursFuzzy
every 2h on weekdaysMon-Fri every 2 hoursFuzzy
WeeklyweeklyScattered day/timeFuzzy
weekly on mondayMonday, scattered timeFuzzy
weekly on friday around 5pmFriday 4pm-6pmFuzzy
Bi-weeklybi-weeklyScattered across 2 weeksFuzzy
Tri-weeklytri-weeklyScattered across 3 weeksFuzzy
Intervalsevery 10 minutesEvery 10 minutes, scattered start minuteFuzzy
every 2 daysDay-of-month step, scattered timeFuzzy
every 2w, every 1moScattered time (and day of month)Fuzzy
Cron0 9 * * 1Standard cronFixed

daily runs once per day at a scattered time, for example 43 5 * * * (5:43 AM UTC). daily on weekdays restricts runs to Monday-Friday, for example 43 5 * * 1-5.

Use around for a ±1 hour window or between for a custom range:

schedule: daily around 14:00 # 13:00-15:00
schedule: daily around 3pm # 2pm-4pm
schedule: daily around noon # 11am-1pm
schedule: daily around 9am on weekdays # Mon-Fri 8am-10am
schedule: daily between 9:00 and 17:00 on weekdays # Mon-Fri 9am-5pm
schedule: daily between 22:00 and 02:00 # Crosses midnight (10pm-2am)
schedule: hourly # Scattered minute, e.g., 58 */1 * * *
schedule: hourly on weekdays # Mon-Fri only, e.g., 58 */1 * * 1-5

Each workflow gets a consistent minute offset (0-59).

Use every N [unit] for intervals. Day, week, and month intervals use the same scattered time slots as daily.

# Minutes (minimum 5 minutes, scattered start minute)
schedule: every 5 minutes # 3/5 * * * *
schedule: every 10m # 7/10 * * * * (short format)
# Hours (scattered minute)
schedule: every 1h # 58 */1 * * *
schedule: every 2 hours # 53 */2 * * *
schedule: every 2h on weekdays # Mon-Fri every 2 hours (e.g., 53 */2 * * 1-5)
# Days (scattered time)
schedule: every 1d # 43 5 * * * (same as daily)
schedule: every 2 days # 43 5 */2 * *
# Weeks (scattered time)
schedule: every 1w # 43 5 * * 1 (same as weekly)
schedule: every 2w # 43 5 */14 * *
# Months (scattered day 1-28 and time)
schedule: every 1mo # 43 5 17 * *
schedule: every 2mo # 43 5 17 */2 *

Minute intervals must divide 60 evenly and be at least 5: 5m, 6m, 10m, 12m, 15m, 20m, 30m, 60m. Hour intervals must divide 24 evenly: 1h, 2h, 3h, 4h, 6h, 8h, 12h, 24h. Cron steps reset at hour and day boundaries.

Previously accepted values such as every 90 minutes and every 5h are now rejected because their generated schedules did not maintain the requested cadence. Choose a supported interval or use an external scheduler if the exact elapsed-time cadence is required.

Day intervals greater than one and week intervals greater than one use day-of-month steps that reset on the first of each month. For example, every 5 days runs on days 1, 6, 11, and so on, then restarts on day 1; it is not a fixed five-day elapsed interval. Bi-weekly and tri-weekly schedules have the same limitation.

For an exact time, use a cron expression such as cron: "0 0 */2 * *".

The crons above are illustrative: actual times, weekdays, and monthly dates depend on the workflow identifier. Weeks and months require the short forms (every 2w, every 2mo), not every 2 weeks or every 2 months.

Recompiling existing workflows changes their schedule once. In particular, every 1w moves from Sunday to a hashed weekday, and every 1mo moves from the first of the month to a hashed day in 1–28. To preserve those calendar dates, use weekly on sunday or an explicit cron such as cron: "0 0 1 * *".

schedule: weekly # Scattered day/time (e.g., 43 5 * * 1)
schedule: weekly on monday # Monday at scattered time
schedule: weekly on monday around 09:00 # Monday 8am-10am
schedule: weekly on friday around 5pm # Friday 4pm-6pm

Supported weekdays: sunday through saturday.

schedule: bi-weekly # Every 14 days at scattered time (e.g., 43 5 */14 * *)
schedule: tri-weekly # Every 21 days at scattered time (e.g., 18 14 */21 * *)

The day-of-month step resets each month, so these schedules do not guarantee 14 or 21 elapsed days between runs.

For cron-based schedule items, use the optional timezone field to interpret the cron expression in a specific timezone rather than UTC:

on:
schedule:
- cron: "30 9 * * 1-5"
timezone: "America/New_York" # 9:30 AM EST/EDT Mon-Fri
- cron: "0 14 * * *"
timezone: "Asia/Tokyo" # 2:00 PM JST daily
- cron: "0 8 * * 1"
timezone: "Europe/London" # 8:00 AM GMT/BST on Mondays

The field accepts any IANA timezone identifier (e.g., America/New_York, UTC). The compiler converts the cron expression to UTC using the specified timezone rules, including daylight saving time.

Use utc+N, utc-N, or utc+HH:MM to convert local times to UTC:

schedule: daily around 14:00 utc+9 # 2:00 PM JST
schedule: daily around 9am utc-5 # 9:00 AM EST
schedule: daily between 9am utc-5 and 5pm utc-5 # Business hours EST
schedule: weekly on monday around 08:00 utc+05:30 # Monday 8:00 AM IST

Times accept 24-hour (09:30), 12-hour (3pm, 11am), and keyword (midnight = 00:00, noon = 12:00) formats.

Common offsets: PT/PST/PDT (utc-8/utc-7), EST/EDT (utc-5/utc-4), JST (utc+9), IST (utc+05:30).

For fixed times, use standard cron syntax. The format is minute hour day-of-month month day-of-week.

on:
schedule:
- cron: "0 2 * * *" # Daily at 2:00 AM UTC
- cron: "30 6 * * 1" # Monday at 6:30 AM UTC
- cron: "0 9 15 * *" # 15th of month at 9:00 AM UTC
- cron: "*/15 * * * *" # Every 15 minutes
- cron: "0 14 * * 1-5" # Weekdays at 2:00 PM UTC
on:
schedule:
- cron: daily
- cron: weekly on monday
- cron: "0 0 15 * *" # Monthly on 15th

on: daily expands to a scattered daily schedule plus workflow_dispatch:

on: daily
# Expands to:
on:
schedule:
- cron: "FUZZY:DAILY * * *"
workflow_dispatch:

The compiler warns about patterns that create load spikes:

! Schedule uses fixed daily time (0:0 UTC). Consider using fuzzy
schedule 'daily' instead to distribute workflow execution times.
! Schedule uses hourly interval with fixed minute offset (0).
Consider using fuzzy schedule 'every 2h' instead.
! Schedule uses fixed weekly time (Monday 6:30 UTC). Consider using
fuzzy schedule 'weekly on monday' instead.