Solving GitHub Actions Schedule Mysteries: Delays, Missing Runs, and Your Engineering OKRs

Scheduled workflows are the backbone of many automated processes, from daily reports to nightly builds. When these critical tasks don't run as expected, it can throw a wrench into your development pipeline and directly impact your team's ability to meet crucial engineering OKRs. This insight dives into a common challenge faced by GitHub Actions users: mysterious delays and missing runs in scheduled workflows.

A GitHub Community discussion highlighted a user's struggle with GitHub Actions schedules. Despite configuring a workflow with a specific cron schedule and timezone:

on:
  workflow_dispatch:
  schedule:
    - cron: '15 22 * * *'
      timezone: 'Asia/Tokyo'

An existing workflow ran nearly seven hours late, and two minimal test workflows (one local-time, one UTC) failed to run at all. This raised critical questions about diagnosing unregistered schedules versus delayed or dropped occurrences.

Developer monitoring GitHub Actions workflow schedules and identifying delays.
Developer monitoring GitHub Actions workflow schedules and identifying delays.

Understanding GitHub Actions Schedule Behavior

The Elusive 'Scheduled For' Timestamp

One of the primary challenges in diagnosing schedule issues is that GitHub Actions run records only include a created_at timestamp, not an explicit scheduled_for time. This means when a run appears, you can only infer which scheduled occurrence it corresponds to. For instance, a run created at 05:10 JST on November 12, corresponding to a 22:15 JST schedule, was inferred to be the November 11 occurrence, delayed by almost seven hours.

The github.event.schedule context variable provides only the cron string (e.g., 15 22 * * *), not the specific date and time of the intended trigger. This lack of a direct link makes it difficult to definitively confirm if a run is merely delayed or if a specific scheduled tick was entirely missed.

Platform Load, Delays, and Dropped Runs

GitHub's documentation explicitly states that "The schedule event can be delayed during periods of high loads of GitHub Actions workflow runs. High load times include the start of every hour," and "some queued jobs may be dropped." The community discussion confirmed this, with other users reporting multi-hour delays around the same dates. This suggests that significant delays are often a platform-level issue rather than a misconfiguration.

Crucially, the timezone configuration is supported and works as expected. If it were ignored, a local-time test (e.g., 08:15 JST) would fire at 08:15 UTC (17:15 JST), which was not observed in the user's tests. This further points to platform delays over timezone misunderstandings.

Clock gears representing a scheduled task, with some gears misaligned, symbolizing workflow delays.
Clock gears representing a scheduled task, with some gears misaligned, symbolizing workflow delays.

Diagnosing Unreliable Schedules for Better Productivity

To ensure your automated workflows reliably contribute to your engineering OKRs, here's how to investigate:

  • Validate Workflow Configuration:
    • Ensure the workflow file is on the default branch and enabled.
    • Confirm the repository hasn't been inactive for 60 days (which disables scheduled workflows).
    • Manual execution success rules out syntax errors, but always confirm the default-branch file.
  • API for Run Records: Use the GitHub API to list scheduled runs. Keep re-checking, as late runs can appear hours after the intended tick.
    GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs?event=schedule&per_page=100

    Record the run ID, run_number, created_at, head_sha, and status/conclusion for each run, noting expected occurrences in UTC.

  • Audit Logs and Commit History: Check for any audit log entries indicating the workflow was disabled or changed. Review the commit history of the workflow file on the default branch for unexpected modifications.
  • In-Workflow Logging (Post-Investigation): While not recommended during initial diagnosis to preserve configuration, adding steps to log date -u and ${{ github.event.schedule }} can aid future troubleshooting.

In summary, while GitHub Actions provides powerful automation essential for achieving engineering OKRs, understanding its scheduling nuances and potential platform-induced delays is key to reliable operations. Your configuration is likely valid; the delays and missing runs are often a symptom of high platform load. Persistent monitoring and a clear understanding of GitHub's schedule behavior will help you maintain predictable automation.

|

Dashboards, alerts, and review-ready summaries built on your GitHub activity.

 Install GitHub App to Start
Dashboard with engineering activity trends