Skip to main content

A schedule line is not a cron: 87 GitHub Actions workflows, measured

Updated 7 min readMarkdown

If you want to know whether a scheduled GitHub Actions workflow actually ran, the run list will not tell you. The runs endpoint returns every run of that workflow whatever started it, so the newest entry is often a push or a pull request, and the cron underneath it is invisible. To ask about the schedule you have to name the trigger:

gh api "repos/OWNER/REPO/actions/workflows/<id>/runs?event=schedule&per_page=1"

I read that way across the thirty most-starred Python repositories on GitHub, and three separate things turned out to be hiding behind the word "scheduled". Sixteen of the eighty-seven workflows whose schedule history I could read had a newest run that was not a schedule run — eight from a push, seven from a pull request, one from a status event. Twenty-one of the eighty-seven had a last cron run that did not conclude successfully. And the single most alarming reading in the sample, a daily cron that had not fired in thirty-eight days with a failure against it, was a job doing exactly what its file said it should.

Three different questions behind one word

"Scheduled" can mean any of these, and they have different answers:

  1. The file declares a schedule. on: schedule: - cron: somewhere on the default branch.
  2. GitHub is willing to run it. The workflow's state is active rather than disabled_manually or disabled_inactivity.
  3. The schedule has actually fired. There exists a run whose event is schedule, with a timestamp and a conclusion.

Only the third one answers "is my cron running", and it is the only one the runs endpoint will not volunteer.

What the file says, and what the state says

Among the 481 workflow files I could read, 90 declared a live cron line — 18.7% of them. Eighty-eight of those 90 were active. The other two were disabled_manually, and both had never run at all, under any trigger, since they were created in September 2024. A disabled workflow still lists, still has its file, and still shows its cron expression to anyone reading the YAML. Nothing in the file says it is off.

That split matters because it is exactly where a reader's check usually stops. Reading on: schedule: proves the intent was written down. Reading state proves GitHub has not switched it off. Neither is evidence that anything ran.

A comment is not a cron

The schedule: key itself can be commented out, and when it is, the workflow keeps running on its other triggers. One repository's daily tracker is the clean example: the whole block is commented, with a note above it explaining that the job is meant to fail on purpose once October begins, because that failure is the signal to retire it.

  # schedule:
  #   - cron: "50 11 * * *" # 11:50 UTC every day

Its last schedule-triggered run is 2026-10-01T11:55:59Z, conclusion failure, and there has been nothing since. Twenty-four schedule runs in total, the last one deliberately red. If I had stopped at "38 days of silence, last conclusion failure" I would have filed a bug against a workflow that is working as designed. The file explained it in one comment, and the runs explained the comment.

This is the inverse of the usual warning. Silence is not automatically breakage, and a red run is not automatically a problem — sometimes the red run is the mechanism.

What the failures actually were

Of the 87 workflows with readable schedule history:

conclusion of the last schedule-triggered run count
success 61
failure 19
no conclusion recorded yet 5
startup_failure 1
skipped 1

startup_failure is the one worth knowing about, because it does not look like a failed job. The workflow could not be started at all — a bad reference or a configuration the runner rejects — so there are no logs of work and nothing that resembles an error message at the job level. From the outside the run is red and empty.

The failures also cluster: nine of the twenty-one came from one repository's nightly caller family, six from another repository's periodic jobs. A nightly matrix that fails most nights is not an incident, it is a background condition — and it is the ambient kind of failure that this measurement is really pointing at.

Silence is rare; red is not

How long since each schedule last fired, measured at one instant:

  • median 0.60 days, mean 1.57, maximum 7.3
  • 19 of 87 had not fired in more than a day (normal: they are weekly)
  • 1 had not fired in more than 7 days
  • none had not fired in more than 14

I also compared each workflow's silence against its own declared period, parsing the cron expression, and counted how many were quiet for longer than three times what their own cron asks for: zero of 87.

So in this sample the cron does not stop. What happens instead is that it keeps firing and keeps failing. If you are worried about a scheduled job, the likelier situation is not that it went silent — it is that it has been red for a while and nobody is watching that workflow's own tab, because the repository's main CI is green.

The one that never fired

One workflow in the sample is active, has a live weekly cron (17 4 * * 1), lives in a repository with 7,356 runs across its workflows, and has never once produced a schedule-triggered run. Not a stale one, not a failed one: none.

I do not know why from the API alone, and I am not going to guess at it. But the shape is worth keeping: active plus a cron line equals "GitHub has not disabled it", which is not the same sentence as "it has run".

How the sample was taken, and what is missing from it

Sample frame: the GitHub search API for language:python stars:>20000, sorted by stars, first 30 results. That query matched 457 repositories; the thirty I read span 105,253 to 497,238 stars. Read on 2026-11-09.

Of the 647 workflow entries those thirty repositories list (excluding the bot-created ones under dynamic/), 481 files were readable and 166 were not: the file endpoint returned 404 for them while the workflow list still named their paths. I recorded those as unmeasured rather than absent — the two endpoints are answering about different things, and a 404 from one is not evidence about the other. So 90 scheduled workflows is a floor computed over the 481 files I could actually read, not a count of everything scheduled in those repositories.

The other boundary: this is the top of the star distribution, which is the healthiest corner of GitHub. Repositories that have been abandoned for a year are exactly where disabled_inactivity lives, and there are none of those here. A sample drawn from dormant repositories would answer a different question, and would probably find the silence I expected to find and did not.

What to run before you conclude anything

  1. Ask for the trigger you care about. ?event=schedule&per_page=1. Every other reading of the runs endpoint silently mixes triggers.
  2. Read state on the workflow, not just the file. disabled_manually keeps the cron expression in place and stops the runs.
  3. Open the workflow's own file and look at the schedule: block, including whether it is commented out. A commented block plus a recent run on push looks exactly like a healthy cron in the UI.
  4. Compare the silence to the cron expression. Weekly jobs are quiet for six days by design; a daily job quiet for seven is a different reading. Mine all passed this test — but the test is the reason I can say so.
  5. If it ran and failed, that is a different problem than if it never ran. The first is a job to fix; the second is a configuration to find.

No comments yet. Be the first to comment.