The schedule said 7 * * * *. That is every hour, at seven minutes past. The grace period on the receiving end was thirty minutes. So the check had half an hour of slack per hour, which is generous by any measure.
The runs were arriving between three and five hours apart.
Not occasionally. Consistently, in a pattern I could only see by pulling the actual timestamps rather than trusting the green ticks in the Actions tab.
Why the check exists
It exists because the site went down and nothing told me.
I found out by opening the page myself. The build had passed, the deploy had reported success, and every URL was serving an error the pipeline had no opinion about. Nothing in the chain was watching the thing the chain produced, because a pipeline that runs at deploy time cannot see what happens at three in the morning on a Tuesday.
That is the gap a heartbeat fills, and it is a different question from does the build pass. A build check asks whether the code is shippable. It has no mechanism for asking whether the shipped thing is answering right now.
What the check actually is
healthchecks.io is the service on the far end. Its documentation describes it as a dead man’s switch for periodic processes, which is the right mental model and the reason I picked it over a conventional monitor.
Here is the arrangement. You create a check and give it two numbers: a period, one hour, and a grace time, thirty minutes. The service then expects a ping within that window. You hit a unique URL to say that everything is still fine, and a /fail variant of the same URL to say that it is not. If neither arrives before period plus grace expires, the check flips to down and alerts you.
The inversion is the whole point. A conventional monitor asks the site whether it is alive and then reports the answer. This one never asks. It waits to be told, and treats the absence of a ping as the bad news.
Which means it has three states, and only two of them are obvious:
- the site answers, and you say so;
- the site does not answer, and you say that;
- the checker itself has stopped, and you say nothing at all.
That third state is the one worth designing for. If the watcher dies quietly, a service that pings only on success will look identical to a service that pings only on failure — both go silent. The difference between my site is down and I stopped watching my site is the entire value of the exercise.
So the contract was simple: ping on success, ping /fail on anything else, and let silence mean the watcher is gone.
The ping URL is a bearer credential in URL form rather than an identifier — anyone holding it can report my site as healthy. So the one in this article is redacted:
https://hc-ping.com/<uuid> success
https://hc-ping.com/<uuid>/fail failure
Both numbers also explain the :07 in the schedule. Seven minutes past the hour is late enough to be clear of a deploy or a DNS change still propagating, and early enough to leave the full hour of slack intact. That offset was not cosmetic. It was the difference between a ping that proves the site answers and a ping that catches a deploy still in progress.
The numbers that ended the argument
Pulling the scheduled runs and measuring the gaps between them:
| Fired (UTC) | Gap from previous |
|---|---|
| 11:38:57 | — |
| 17:03:25 | 5h 24m |
| 20:30:34 | 3h 27m |
| 23:57:09 | 3h 27m |
| 04:34:13 | 4h 37m |
| 09:55:45 | 5h 21m |
Against a one-hour period and a thirty-minute grace.
Read that table as a user of the monitor and the conclusion is not subtle: for most of every day, the check would have been sitting in a missed ping state, alarming about a site that was perfectly fine. A monitor that cries wolf four times a day is worse than no monitor, because it teaches you to ignore the one that matters.
Why this happens, and why it is not a bug report
GitHub is explicit about this in its documentation for the schedule event:
The
scheduleevent can be delayed during periods of high loads of GitHub Actions workflow runs. High load times include the start of every hour. To decrease the chance of delay, schedule your workflow to run at a different time of the hour.
The recommended mitigation is in the same note, and I had already followed it. The check fired at :07 for exactly that reason. It still drifted by up to five hours.
That is the part I want to be fair about. Nothing was broken. The docs say the delay is possible, tell you how to reduce the odds, and never promise a bound. I had read the first two and assumed the third.
The thing to internalise is that the delay is not bounded by anything you can configure. There is no timeout for lateness. Your cron expression describes an intention, not a commitment.
I had known that abstractly. What changed my mind was measuring it and finding that the worst gap was more than five times the period.
There was a second, quieter symptom from the same cause: the deploy workflow, scheduled to rebuild the site twice a week so that queued posts go live, fired nearly five hours after its slot. It still worked — the posts published the same morning — but it confirmed the pattern was platform-wide rather than specific to the health check.
Moving the check somewhere that keeps time
Cloudflare Workers support cron triggers, they run on Cloudflare’s scheduler, and the site was already living there. So the check moved from a GitHub Actions workflow to a small Worker with one scheduled handler.
The first attempt deployed and appeared to work. It registered nothing.
Unexpected fields found in triggers field: "cron"
The field is crons. Plural. Wrangler warned, ignored the key, uploaded the Worker, and reported a successful deployment — because from its point of view nothing had failed. The Worker existed. It simply had no schedule attached, and would never be invoked.
A deployment that succeeds while doing nothing is the same category of problem as a CI run that never happens: both look like health.
"triggers": {
"crons": ["7 * * * *"]
}
Deployed again. This time the output included the line that mattered:
schedule: 7 * * * *
The design decisions worth keeping
Three choices in that Worker exist because of what the check is for, not because of what was convenient.
It is a separate Worker from the one serving the site. The site’s Worker is config-only — static assets and routes, no script, no entry point. Giving it a script so a monitor could live next to it would mean a bug in the monitor can take the website down with it. Kept apart, a broken health check physically cannot break the site.
It bypasses the edge cache when probing. A cached 200 would report the site as healthy while the thing behind it is what actually failed. So the probe sends cacheTtl: 0 and a no-cache header, and takes the origin’s answer rather than the edge’s memory of one.
The ping URL is a Worker secret, not a value in the config. For the same reason it was never a literal in the workflow: a leaked configuration file should not be enough to forge a success ping.
There is also a ten-second timeout on the probe, and the handler throws on any failure rather than swallowing it. A throw shows up in the Worker’s own logs. Silently returning would make a broken check look exactly like a healthy one.
What the first scheduled run looked like
The cron fired and the tail showed:
probe=200 ping=200 success
Wall time 786 milliseconds. Scheduled slot 14:07:00Z, invocation at 14:07:12Z.
Twelve seconds. Not zero, because nothing is ever exactly on time, but twelve seconds against a thirty-minute grace is not a scheduling problem — it is clock noise. The previous arrangement was missing the window by hours.
The honest summary
The check was never wrong about the site. It was wrong about itself, and it had been telling me so for weeks in a language I had not thought to read: the absence of expected events.
I would rather have an alarm that is occasionally annoying than one that is quietly absent. The difference between the two is a single question, asked once — when did this last actually run? — and answered from timestamps instead of from a green tick.
If you have a scheduled job you have not inspected the timestamps of recently, this is your reminder. 👇