Drumbeats/Blog/Article

Article

GitHub Actions scheduled workflow not running: causes and fixes

A workflow on cron '*/15 * * * *' ran 23 times in 76 hours, with no error anywhere. What GitHub documents about delayed and dropped schedules, every other reason a schedule stops, and how to get an alert for a run that never starts.

GitHub Actions scheduled workflow not running: causes and fixes
8 min readgithub actionscronscheduled jobstroubleshootingheartbeat monitoring

On 13 November we added a workflow to a public repository with two schedules, /15 and 7 *. That is five runs an hour. In the next 76 hours GitHub started 23 of the 380 runs the schedule asked for, 6.1%. The workflow stayed enabled, all 23 runs succeeded, and nothing in the repository said that 357 runs never happened.

This post covers what GitHub documents about scheduled workflows, the other reasons a schedule stops firing, how to see what actually ran, and how to get an alert when a run never starts. The data comes from drumbeats-io/cdi-probes, the repository we use to measure scheduler lateness for an upcoming report.

What the run history showed#

The Actions API lists every run a workflow started. Filtering by event=schedule leaves only the cron runs:

gh api --paginate \
  "repos/drumbeats-io/cdi-probes/actions/workflows/cdi.yml/runs?event=schedule&per_page=100" \
  --jq '.workflow_runs[] | [.created_at, .conclusion] | @tsv'
gh api --paginate \
  "repos/drumbeats-io/cdi-probes/actions/workflows/cdi.yml/runs?event=schedule&per_page=100" \
  --jq '.workflow_runs[] | [.created_at, .conclusion] | @tsv'

Between the workflow landing on the default branch (13 November, 11:51 UTC) and the moment we pulled the data (16 November, 15:57 UTC):

MeasureValue
Scheduled slots in the window380
Scheduled runs GitHub started23 (6.1%)
Time to the first scheduled run9.1 hours
Runs per day2, 9, 8, 4 (13 to 16 November, the last day partial)
Median gap between runs2.2 hours
Longest gap7.3 hours (16 November, 02:08 to 09:26 UTC)
Failed runs0

Most slots never produced a run, so a run cannot be matched to its own slot, and a per-run delay would be guesswork. The runs that did happen started a median of 6.2 minutes after the nearest earlier slot. This is one repository, three days old, with little other activity. I would not read it as GitHub's rate for every repository, but it is what a new public repository got in November 2026.

What GitHub documents#

The note on the schedule event in Events that trigger workflows says it directly: "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. If the load is sufficiently high enough, some queued jobs may be dropped." The advice that follows is to schedule the workflow "at a different time of the hour".

The same page sets the other rules:

  • The workflow file has to exist on the default branch, and scheduled runs use the latest commit there.
  • "The shortest interval you can run scheduled workflows is once every 5 minutes."
  • Cron is the five-field POSIX format, in UTC unless you add a timezone key with an IANA name. GitHub added that key on 19 March 2026; older answers that say "UTC only" are out of date. In a spring-forward DST change, a run in the skipped hour moves to the next valid time.
  • "In a public repository, scheduled workflows are automatically disabled when no repository activity has occurred in 60 days."

A dropped run is not a failed run. It never appears in the run list, so the Actions tab looks the same whether the job ran at 02:00 or never ran at all.

Causes, in the order to check them#

  1. The workflow is not on the default branch. A schedule on a feature branch never fires. Merge it, then check that the Actions tab lists the workflow at all.
  2. The workflow was disabled. Public repositories turn schedules off after 60 days without activity, and a fork starts with scheduled workflows disabled. The workflow page then shows a banner and an Enable button. From the CLI: gh workflow enable cdi.yml. GitHub does not define what counts as "activity", so I would not rely on a keepalive commit pushed with GITHUB_TOKEN: events from that token do not start other workflow runs, and whether they reset the 60 days is not documented.
  3. The cron expression. Six fields, @daily and intervals under 5 minutes are not part of the documented syntax. Quote the expression in YAML, because a value that starts with * is a YAML alias without quotes.
  4. The repository cannot run Actions. Actions turned off in the repository or organization settings, or, on a private repository, a spending limit or failed payment. Community reports quote the run annotation "The job was not started because recent account payments have failed or your spending limit needs to be increased". That one at least leaves a run behind.
  5. The top of the hour. 0 competes with everyone else's hourly jobs. Our runs on 7 and */15 were not spared either, so a different minute lowers the odds without fixing anything.
  6. GitHub delays or drops the run. In community discussion #185355 (January 2026) a GitHub staff member wrote that a change had been rolled back and that "any commit pushed to the default branch will resync the impacted scheduled workflows". Reports in the same thread continued into September 2026, some saying the resync commit did not help. A push to the default branch is cheap to try. If runs still go missing, the cause is on GitHub's side and nothing in the workflow file changes it.

Getting an alert when a run never starts#

GitHub can only notify you about runs that exist. For a run that was dropped, the signal has to come from outside: the job pings a monitor when it runs, and the monitor alerts when a ping is late.

These are the triggers and the job our probe workflow runs on every scheduled run (the file also has a name and a workflow_dispatch trigger). It pings a Drumbeats monitor chosen by which cron line fired:

on:
  schedule:
    - cron: '*/15 * * * *'
    - cron: '7 * * * *'
jobs:
  ping:
    runs-on: ubuntu-latest
    timeout-minutes: 2
    steps:
      - name: Ping Drumbeats
        env:
          BASE: ${{ secrets.DRUMBEATS_BASE }}
          SCHEDULE: ${{ github.event.schedule }}
        run: |
          case "$SCHEDULE" in
            '7 * * * *') SLUG=cdi-gha-hourly-07 ;;
            *)           SLUG=cdi-gha-15m ;;
          esac
          curl -fsS -m 10 -o /dev/null "$BASE/$SLUG/success"
on:
  schedule:
    - cron: '*/15 * * * *'
    - cron: '7 * * * *'
jobs:
  ping:
    runs-on: ubuntu-latest
    timeout-minutes: 2
    steps:
      - name: Ping Drumbeats
        env:
          BASE: ${{ secrets.DRUMBEATS_BASE }}
          SCHEDULE: ${{ github.event.schedule }}
        run: |
          case "$SCHEDULE" in
            '7 * * * *') SLUG=cdi-gha-hourly-07 ;;
            *)           SLUG=cdi-gha-15m ;;
          esac
          curl -fsS -m 10 -o /dev/null "$BASE/$SLUG/success"

On the Drumbeats side each slug is a cron monitor with the same schedule as the workflow. A cron monitor knows when the next run is due, so a missing ping becomes a missed-run incident once the grace period passes. For a real job, set the grace to the delay you can live with. GitHub's own docs make a few minutes of lateness normal, so I would start at 15 minutes for an hourly job.

The probe only needs to say "I ran". A job that does real work should also report how it ended, so the monitor can tell a failed run from a missing one. This is the workflow I used for that, in a separate private repository, against a Drumbeats cron monitor on 17 with a 15-minute grace period (shown without an input description and a debug echo):

name: hourly-report
on:
  schedule:
    - cron: '17 * * * *'
  workflow_dispatch:
    inputs:
      fail:
        type: boolean
        default: false

jobs:
  report:
    runs-on: ubuntu-latest
    timeout-minutes: 10
    env:
      PING: ${{ secrets.DRUMBEATS_PING }}
      RUN_ID: gh-${{ github.run_id }}-${{ github.run_attempt }}
    steps:
      - name: Drumbeats start
        run: curl -fsS -m 5 -o /dev/null "$PING/start?run_id=$RUN_ID" || true

      - name: Build the report
        env:
          FAIL: ${{ inputs.fail }}
        run: |
          sleep 20
          if [ "$FAIL" = "true" ]; then echo "report source returned 503"; exit 1; fi

      - name: Drumbeats success
        if: success()
        run: curl -fsS -m 5 -o /dev/null "$PING/success?run_id=$RUN_ID" || true

      - name: Drumbeats failure
        if: failure()
        run: curl -fsS -m 5 -o /dev/null "$PING/failure?run_id=$RUN_ID" || true
name: hourly-report
on:
  schedule:
    - cron: '17 * * * *'
  workflow_dispatch:
    inputs:
      fail:
        type: boolean
        default: false

jobs:
  report:
    runs-on: ubuntu-latest
    timeout-minutes: 10
    env:
      PING: ${{ secrets.DRUMBEATS_PING }}
      RUN_ID: gh-${{ github.run_id }}-${{ github.run_attempt }}
    steps:
      - name: Drumbeats start
        run: curl -fsS -m 5 -o /dev/null "$PING/start?run_id=$RUN_ID" || true

      - name: Build the report
        env:
          FAIL: ${{ inputs.fail }}
        run: |
          sleep 20
          if [ "$FAIL" = "true" ]; then echo "report source returned 503"; exit 1; fi

      - name: Drumbeats success
        if: success()
        run: curl -fsS -m 5 -o /dev/null "$PING/success?run_id=$RUN_ID" || true

      - name: Drumbeats failure
        if: failure()
        run: curl -fsS -m 5 -o /dev/null "$PING/failure?run_id=$RUN_ID" || true

DRUMBEATS_PING is a repository secret holding the monitor's ping URL. The run id includes github.run_attempt, so a re-run does not collide with the original, and || true keeps a ping that fails from failing the job. I started it twice with gh workflow run hourly-report.yml on 16 November. The normal run sent start and success 21.9 seconds apart. The run with -f fail=true sent start and failure, and the monitor opened a failed incident at 17:07:23 UTC, two seconds before GitHub marked the run failed.

A cancelled run sends neither final ping, because neither success() nor failure() is true, so give the monitor a maximum duration and the open start turns into a failure. Our GitHub Actions integration guide covers reusable workflows and matrix jobs.

When to take the schedule off GitHub#

If the job has to run on time, GitHub's scheduler is the wrong place for the clock. One option is to keep the workflow and trigger it from a scheduler you trust through workflow_dispatch: gh workflow run <file> or a POST to the workflow dispatches endpoint. The monitor stays the same, because it watches for the ping, not for who started the run. I have not measured how dispatch-triggered runs behave under the same load, so treat it as a likely improvement, not a guarantee.

What this does not cover#

The numbers above come from one public repository over three days. The demo repository is private, and its schedule has only run since 16 November, so this post does not report how often GitHub started it. We did not test larger organizations or GitHub Enterprise Server, and we did not test whether a push to the default branch brings back missing runs. The probe keeps running for the Cron Drift Index, our report on how late cloud schedulers fire, due in late January 2027.

To try the alert on your own workflow, connect Drumbeats or start free; the cron job failed silently post covers the same pattern for classic crontab.

Keep following Drumbeats

Prefer a feed reader or want to share this post with your team? The archive stays on permanent Drumbeats URLs and every article is available through standard feeds.

Related reading

Why Your Cron Job Failed Silently (and How to Actually Catch It)
11 min readcronsilent failure

Why Your Cron Job Failed Silently (and How to Actually Catch It)

Cron does not read your exit code, does not retry, and does not warn you when it does not run. It mails output only if a mail transfer agent happens to exist on the host. This is a sourced walkthrough of the ten ways a cron job fails without a trace, why Kubernetes CronJobs fixed the scheduling problems but not the reporting one, and the one mechanism that answers whether it succeeded.

systemd timer not running: seven causes, and the runs that exit 0 with an empty file
15 min readsystemdsystemd timers

systemd timer not running: seven causes, and the runs that exit 0 with an empty file

A systemd timer can be enabled, active and never fire again, and a service can finish with Result=success after writing a 20-byte backup. Seven ways a timer stays silent and two ways a job succeeds with nothing to show, each reproduced on systemd 257 with the real output, and one line in the service that reports them all.

A heartbeat for Claude Code scheduled tasks
10 min readclaude codeai agents

A heartbeat for Claude Code scheduled tasks

Claude Code's scheduled tasks mark a run Succeeded when the session ended without a reported failure. That says nothing about whether the work happened, and nothing at all when a run never starts. Three hook lines, a run id, and a monitor outside the agent, tested on an expired token and in a cloud scheduled task.