# 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.

- **Canonical URL**: https://opslint.dev/cron/github-actions-schedule-timezone-and-queue-delay/
- **Category**: `CRON`
- **Interactive Workbench**: [Open in Live Workbench](https://opslint.dev/cron/#expr=17%209%20*%20*%201-5&tz=America%2FNew_York&dialect=github-actions)
- **Normative Specifications**: `GitHub Actions Workflow Syntax: on.schedule & timezone`, `POSIX crontab 5-Field Syntax (GitHub Actions Parser)`, `GitHub Actions Runner Queue & High-Load Dropping Policy`

## Incident Symptom & Root Cause

**Production 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.

**Protocol / Engine Root Cause**: 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.

## Remediation Diff (Broken vs Verified Fix)

### High-Jitter UTC Schedule + Clamped Sub-5-Minute Interval

```text
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.sh
```

### IANA Timezone-Aware Off-Peak Schedule

```text
name: 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.sh
```

## Engineering 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

| Case / Engine | Protocol Behavior | Production Remediation |
| :--- | :--- | :--- |
| **Intervals under 5 minutes (*/1, */2)** (`#gha-5-minute-floor`) | 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)** (`#gha-top-of-hour-jitter`) | 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** (`#gha-non-default-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** (`#gha-iana-timezone-field`) | 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. |

## Frequently Asked Engineering Questions

### 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.

## Related Problem-Cluster Guides

- [GitHub Actions Scheduled Workflows Auto-Disabled After 60 Days of Repo Inactivity](https://opslint.dev/cron/github-actions-60-day-inactivity-scheduled-workflow-disabled/) — Why public GitHub repositories automatically suspend on.schedule cron workflows after 60 days without commits, and how to re-enable or prevent suspension.
- [The POSIX Cron Day-of-Month + Day-of-Week OR Trap (0 9 13 * 5 Runs Every Friday)](https://opslint.dev/cron/posix-dom-dow-or-boolean-trap/) — Why specifying both Day-of-Month and Day-of-Week in POSIX crontab evaluates as boolean OR (union) instead of AND, and how to guard intersection schedules.
- [Cron Jobs Skipped During Daylight Saving Time Spring Forward (02:00–02:59 Gap)](https://opslint.dev/cron/dst-spring-forward-skipped-jobs/) — Why 02:30 local cron schedules vanish on Kubernetes CronJob and AWS EventBridge while Vixie Cron runs catch-up at 03:00, and how to prevent missed runs.
- [Cloudflare Workers Cron Triggers: UTC Syntax, L/W/# Modifiers, and Multi-Cron Routing](https://opslint.dev/cron/cloudflare-workers-cron-triggers-utc-expressions/) — Configure wrangler.jsonc triggers.crons in UTC, dispatch multiple schedules cleanly via controller.cron in scheduled(), and protect async tasks with ctx.waitUntil.
