GitHub Actions Schedule Timezone Syntax, 5-Minute Floor, and Queue Delay Fixes
Configure native IANA timezones on GitHub Actions on.schedule triggers, avoid silent 5-minute interval clamping, and eliminate top-of-hour queue delays.
Incident Symptom & Protocol Root Cause
Production Failure Symptom
Scheduled GitHub Actions workflows start 15–45 minutes late at 00:00 UTC, silently clamp */1 or */2 minute cron rules down to 5-minute intervals, or run at the wrong hour when teams hardcode UTC offsets that drift twice a year during DST.
Scheduler Parser & Clock Mechanics
GitHub Actions enforces a hard minimum interval of once every 5 minutes on scheduled workflows, queues global runner dispatch spikes heavily at :00 and :30 minutes (especially midnight UTC), and evaluates bare cron strings in UTC unless an explicit IANA timezone key is attached to the schedule entry.
Broken vs Verified Configuration
name: Production Synthetic Check & Morning Digest
on:
schedule:
# Trap 1: Clamped silently to every 5 minutes by GitHub Actions
- cron: "*/2 * * * *"
# Trap 2: 00:00 UTC peak-hour global runner stampede + hardcoded EST offset
- cron: "0 14 * * 1-5"
jobs:
run-digest:
runs-on: ubuntu-latest
steps:
- run: ./scripts/send-digest.shname: Morning Engineering Digest
on:
schedule:
# Off-peak minute (:17) avoids global :00/:30 dispatch queue delays
# Explicit IANA timezone adjusts automatically across EST/EDT transitions
- cron: "17 9 * * 1-5"
timezone: "America/New_York"
# Always pair schedule with workflow_dispatch for manual incident recovery
workflow_dispatch: {}
jobs:
run-digest:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@v4
- run: ./scripts/send-digest.shOperational Deep Dive
GitHub Actions processes millions of scheduled repository workflows through a shared multi-tenant scheduler. Because tutorial snippets overwhelmingly default to 0 0 * * * and */30 * * * *, runner dispatch queues spike sharply at the top and bottom of every hour. GitHub explicitly documents that during periods of high load, on.schedule runs may be delayed by dozens of minutes or even dropped completely if the workflow has not yet been queued before the next window.
Two scheduling rules eliminate almost all avoidable latency and drift. First, pick prime or off-round minutes such as 7, 17, 23, 41, or 53 instead of 0 or 30; shifting 0 9 * * 1-5 to 17 9 * * 1-5 commonly cuts dispatch delay from 20+ minutes to under 30 seconds. Second, attach timezone: 'America/New_York' (or your target IANA zone) directly on the schedule item rather than manually calculating UTC offsets that break every March and November.
Remember two hard platform constraints: scheduled workflows ONLY trigger from the repository's default branch (typically main), so testing a schedule change on a feature branch will never fire automatically—always add workflow_dispatch: {} alongside schedule so changes can be tested on feature branches before merging. And if you require guaranteed sub-5-minute synthetic monitoring or strict SLA alerting, run the trigger from Cloudflare Workers Cron Triggers, AWS EventBridge Scheduler, or an external uptime monitor rather than GitHub Actions.
GitHub Actions on.schedule Constraints & Mitigations
| Engine / Case | Runtime Behavior | Production Remediation |
|---|---|---|
| Intervals under 5 minutes (*/1, */2) | Silently throttled/clamped to a minimum 5-minute cadence; never executes every 60 seconds. | Use >=5-minute expressions (*/5 * * * *) or move sub-minute/1-minute checks to Cloudflare Workers / EventBridge. |
| 0 0 * * * or 0 * * * * (:00 / :30) | Queues behind global GitHub tenant spike; 10–45 minute start delays or dropped ticks during peak load. | Offset minute field to off-peak prime values such as 13, 23, 37, or 47. |
| Cron modified on PR / feature branch | Ignored completely; GitHub only registers on.schedule from the default branch (e.g. main). | Include workflow_dispatch: {} to test on feature branches, then merge to default branch. |
| Local business-hour schedules | Bare cron string defaults to UTC; hardcoded UTC hours shift by 1 hour during DST. | Add timezone: 'America/New_York' (IANA name) under the - cron: list item. |
Edge Cases & Engineering FAQs
Does GitHub Actions support 6-field cron expressions with seconds or year?
No. GitHub Actions strictly parses 5-field POSIX crontab syntax (minute, hour, day-of-month, month, day-of-week). Adding a 6th field causes a workflow YAML validation failure.
What happens if github.event_name == 'schedule' runs exclusively on main?
Inside scheduled runs, github.ref points to your default branch and github.sha points to the latest commit on that branch at dispatch time. Any secrets scoped to an Environment still require that branch to satisfy environment deployment branch rules.
Can a delayed GitHub Actions schedule overlap with its own next run?
Yes. If */10 * * * * is delayed by 12 minutes in the queue or takes 15 minutes to build, two workflow runs can execute concurrently. Add a top-level concurrency: { group: ${{ github.workflow }}, cancel-in-progress: false } block to serialize or deduplicate runs.
Runtime Dead-Man's-Switch Verification
Dead-man's-switch heartbeat checks that page on-call when a scheduled job skips a DST gap, stalls on a lock, or exits non-zero.