Short answer
- Why runs go missing: GitHub can delay scheduled runs when Actions is busy, especially at the top of the hour, and can drop queued jobs under heavy load. In a public repository, scheduled workflows are disabled after 60 days without repository activity.
- Why you don't hear about it: a run that never starts can't fail, so no failure email is sent. And failure emails for scheduled runs go to whoever last edited the cron line, not necessarily you.
- The fix: end the job with a heartbeat ping and expect it on the same schedule. When the ping doesn't arrive, for any reason, you get an alert.
GitHub Actions is a convenient place to run scheduled work: nightly exports, dependency syncs, report generation, cache warmers, backups of a small database. It's already there, it has your secrets, and on: schedule is three lines of YAML. It's also a scheduler that, by design, gives you no signal when a run doesn't happen.
None of what follows is a bug or an outage. It's documented behavior, and once you know it, the monitoring you need is small.
Four ways a scheduled workflow fails quietly
1. The run starts late, or not at all
GitHub's schedule event documentation says scheduled runs can be delayed when Actions is under high load, that the start of every hour is one of those times, and that when load is high enough some queued jobs may be dropped. Its own advice is to schedule away from the top of the hour.
A delay is usually harmless. A dropped run is a missing night of whatever the job does, and the Actions tab simply shows no run for that time. Nothing failed, so nothing is red.
2. The workflow gets disabled
In a public repository, GitHub automatically disables scheduled workflows when the repository has had no activity for 60 days. That bites exactly the repos where scheduled jobs live longest: a stable tool, a data-collection repo, a docs site nobody has touched since summer. Scheduled workflows are also disabled by default on forks of public repositories, so a fork that "has the same cron" isn't running it.
3. The failure email goes to someone else
When a scheduled run does fail, GitHub sends the notification to the user who last changed the cron syntax in the workflow file. On a team, that's whoever touched the schedule last, possibly a year ago, possibly someone who has since left. Everyone else learns about it when they open the Actions tab.
4. The job hangs until the timeout
A step waiting on a slow API or a stuck lock doesn't fail, it waits. The default job timeout is 360 minutes, so a hung nightly job holds a runner for six hours before GitHub cancels it, and the work still didn't happen.
Two more details worth knowing
timezone key (an IANA name such as Europe/Berlin) next to it, as described in the workflow syntax docs.Why the Actions tab can't warn you
Every signal GitHub gives you is about a run that happened: a red X, a failure email, a log. Delays, drops and disabled workflows are runs that didn't happen, so there's nothing to attach a signal to. Adding a Slack step on failure has the same blind spot, because that step only runs inside a run.
The check has to live outside GitHub and work the other way round: expect a signal by a certain time, and alert when it doesn't arrive. That's a heartbeat, also called a dead man's switch.
The fix: a heartbeat at the end of the job
Create a heartbeat in Uptimy, store its ping URL as a repository secret (here UPTIMY_HEARTBEAT_URL), and make pinging it the last step of the job:
name: nightly-export
on:
schedule:
- cron: "17 3 * * *" # 03:17 UTC, away from the top of the hour
workflow_dispatch: # run it by hand to test the heartbeat
jobs:
export:
runs-on: ubuntu-latest
timeout-minutes: 30 # fail a hung run instead of waiting 6 hours
steps:
- uses: actions/checkout@v4
- name: Export
run: ./scripts/export.sh
- name: Heartbeat
if: success()
run: curl -fsS -m 10 --retry 3 "${{ secrets.UPTIMY_HEARTBEAT_URL }}"Each line is there for one of the failure modes above:
- The ping is the last step and runs only on success. A failed export, a cancelled run, a dropped run and a disabled workflow all end the same way: no ping, so one alert covers all of them.
timeout-minutes: 30turns a hang into a failure after half an hour. Set it a little above your longest normal run.- Minute 17, not minute 0, follows GitHub's own advice for avoiding the busiest time.
workflow_dispatchlets you run the workflow once by hand and watch the heartbeat turn healthy before you rely on it.
Configure the heartbeat to match the schedule
Under Timing on the heartbeat's Configuration tab:
- Schedule: choose Cron and paste the same expression,
17 3 * * *, with the time zone set to UTC (or to the zone in your workflow'stimezonekey). - Grace period: how late a run may be before it counts as missed. It has to cover GitHub's start delay plus the job's normal run time. For a ten-minute job, 45 to 60 minutes avoids false alarms on busy nights while still telling you before morning.
- Failure threshold: leave it at 1 for a daily job. For a job every 15 minutes, 2 or 3 in a row stops a single delayed run from paging anyone.
Then decide where the alert goes. A missed nightly export can usually wait for working hours; a missed billing run can't. Alert routing lets you send each heartbeat to the channel, or the person on call, that owns it.
Catch runs that succeed but do nothing
An export that finds zero rows exits 0, so the ping still fires. If "ran but did nothing" is a failure for this job, send the number with the ping and check it. Validation rules belong to job-chain steps, so set the heartbeat up as a job chain with one step, exported, and add a rule on that step: rows_exported greater than 0.
- name: Heartbeat
if: success()
run: |
ROWS=$(cat export/row-count.txt)
curl -fsS -m 10 --retry 3 \
"${{ secrets.UPTIMY_HEARTBEAT_URL }}?stepKey=exported&rows_exported=${ROWS}&run_id=${{ github.run_id }}"Query parameters and X- headers are recorded with each run, and the rule marks a run with rows_exported=0 as failed. Uptimy never reads the request body, so put anything you want checked in the URL or a header. The run_id makes it one click from the alert to the run's logs.
Jobs with several stages
For a workflow with separate stages (extract, transform, upload), configure the heartbeat as a job chain and send a step key from each stage:
curl -fsS "$UPTIMY_HEARTBEAT_URL?stepKey=extracted"
curl -fsS "$UPTIMY_HEARTBEAT_URL?stepKey=transformed"
curl -fsS "$UPTIMY_HEARTBEAT_URL?stepKey=uploaded"The alert then names the stage that didn't report, instead of just "the job". The heartbeat docs cover step order and validation rules per step.
Common mistakes
- Pinging at the start of the job. That proves the run started, not that it finished. Ping last, on success.
- Using
if: always()on the heartbeat step. The ping then fires for failed runs too, and the heartbeat stays healthy while the job fails every night. - A grace period shorter than GitHub's delays. Five minutes of grace on an Actions schedule will page you for runs that were only late.
- Hardcoding the ping URL. In a public repository anyone can then ping it and hide a real outage. Keep it in a secret.
- Treating the 60-day rule as solved by a keepalive commit. Scheduled commits that keep a repo "active" are common, but they're one more scheduled job that can stop. The heartbeat tells you when it happens.
📌Key Takeaways
- 1GitHub documents that scheduled runs can be delayed at busy times and dropped under heavy load
- 2Public repos disable scheduled workflows after 60 days without activity; forks start with them disabled
- 3A run that never starts sends no failure email, and failure emails go to whoever last edited the cron line
- 4End each scheduled job with a heartbeat ping on success, and expect it on the same cron schedule
- 5Set timeout-minutes so a hung job fails in minutes, not after the 6-hour default
- 6Give the heartbeat a grace period long enough for GitHub's start delays
Scheduled workflows are worth using. They just need someone outside GitHub to notice when a run doesn't happen. A heartbeat is one curl line and a matching cron expression, and the free plan covers 5 of them.