GitHub Actions schedule cron: catch missed runs
On this page
- How can a scheduled job fail silently on GitHub Actions schedules?
- What are the limits of GitHub Actions schedules?
- How do you add a CronMissed ping to GitHub Actions schedules?
- How do you write a cron schedule in GitHub Actions?
- Which check settings fit GitHub Actions schedules?
- How do you confirm the check works?
- Sources
- Questions and answers
A GitHub Actions schedule can run late, skip a run under load, or stop altogether in a public repository with no activity, and none of those sends a notification. End the workflow with a CronMissed ping and the missing run becomes an alert.
How can a scheduled job fail silently on GitHub Actions schedules?
- GitHub documents that the schedule event can be delayed during periods of high load, that high load includes the start of every hour, and that if the load is high enough some queued jobs may be dropped. A dropped run leaves no failed run to look at.
- In a public repository, scheduled workflows are disabled automatically when the repository has had no activity for 60 days. The workflow stays in the file; it just stops running.
- Scheduled workflows run only on the default branch and use the latest commit there, so a schedule added on a feature branch never fires.
- Notifications about scheduled runs go to the user who last changed the cron line. If that person leaves, or in an enterprise with managed users is deprovisioned, the notifications go to someone who may not be watching, and the scheduled workflow stops running.
What are the limits of GitHub Actions schedules?
| Limit | What the documentation says |
|---|---|
| Shortest interval | Once every 5 minutes. |
| Time zone | UTC by default; a workflow can name an IANA time zone for the schedule. |
| Start-of-hour load | Runs can be delayed at the start of every hour. GitHub suggests picking a different minute to lower the chance of a delay. |
| Skipped hour on a clock change | For a schedule with a time zone that observes daylight saving, a run inside the skipped spring-forward hour moves to the next valid time, so 2:30 AM runs at 3:00 AM. |
| Inactive repositories | Scheduled workflows in a public repository are disabled after 60 days without repository activity. |
GitHub states these limits in the documentation for the schedule event.
How do you add a CronMissed ping to GitHub Actions schedules?
Put the ping in the last step of the job and give it if: always(), so it runs after a failed step too. The step reports success or failure from the job status. Store the ping URL as a repository secret, because the URL is the check's only credential.
on:
schedule:
- cron: '17 4 * * *'
jobs:
nightly-build:
runs-on: ubuntu-latest
steps:
# ... the job's own steps ...
- name: Report to CronMissed
if: always()
env:
PING_URL: ${{ secrets.CRONMISSED_PING_URL }}
JOB_STATUS: ${{ job.status }}
run: |
if [ "$JOB_STATUS" = "success" ]; then suffix=""; else suffix="/fail"; fi
curl -fsS --max-time 10 --retry 5 --retry-connrefused -o /dev/null "$PING_URL$suffix"How do you write a cron schedule in GitHub Actions?
Add a schedule trigger under on: in the workflow file and give it a cron line of five fields: minute, hour, day of the month, month and day of the week. GitHub runs the workflow from the default branch, and the shortest interval it accepts is once every 5 minutes.
on:
schedule:
- cron: '17 4 * * 1-5'That line means 04:17 UTC, Monday to Friday. To check any line before you commit it, paste it into the cron expression translator, or build one with the cron generator.
Which check settings fit GitHub Actions schedules?
Create a cron check with the same expression as the workflow and the time zone UTC (or the zone the workflow names). Choose a minute that is not :00, and give the check at least 15 minutes of grace so ordinary start-of-hour delays do not raise alerts. If the job takes longer than a few minutes, add a start ping as the first step; the check then also reports runs that start and never finish.
How do you confirm the check works?
- Run the workflow once by hand with the workflow_dispatch trigger and watch the check turn up in the dashboard.
- Break the job on purpose, for example by exiting 1 in a step, and confirm the ping goes to /fail and the check goes down within seconds.
- Disable the workflow in the Actions tab and confirm the check goes late and then down once the grace time passes.
Sources
- GitHub Docs: events that trigger workflows (schedule) , read 22 October 2026
Questions and answers
- No. A dropped run is not recorded as a failure, so the Actions tab shows nothing for it. A heartbeat check is how you notice, because the ping it expects never arrives.
- Inside the same job, as its last step with if: always(). A separate workflow would be a second schedule that can fail on its own and would hide the real job's result.
Does GitHub tell me when a scheduled workflow is dropped?
Should the ping run inside the job or in a separate workflow?
Create a check, add the ping to the job, and CronMissed alerts you the first time a run is late or reports a failure.
Start monitoring