Heartbeat monitoring: flag missed backups and cron jobs

Based on linked references, not product use or testing. No affiliate links.

For client backups and cron jobs, select a heartbeat service whose documentation specifies alerts for missing completion signals. Send the signal only after the chosen success point and allow for normal completion time.

When should a job send its heartbeat?

Healthchecks.io's How to Monitor Cron Jobs documents notifications when a scheduled job's expected completion ping does not arrive.

A backup job can stop running while the website continues to return successful pages. The same is true for imports, report generation, cache warming, certificate renewal tasks and scheduled maintenance scripts. A successful response from an unrelated web page does not establish that a scheduled job ran. Check the job’s recorded completion state or its expected heartbeat.

The Healthchecks.io cron-job guide describes the job sending an HTTP ping when it completes, with notifications for a missing ping after the configured grace time. It calls this heartbeat monitoring a type of dead man's switch. This is the documented Healthchecks.io example, not a universal service contract.

The signal should represent meaningful progress. For your success rule, treat a start signal as evidence of the reporting step, not completion of the job. For backups, the most useful completion signal normally follows a successful write and any required verification.

What schedule, delay and success rule should you set?

Write down the expected schedule, tolerated delay, success point, timezone and owner. Include daylight-saving behavior and long-running jobs. A daily task expected at 02:00 should not alert at 02:01 if normal completion takes forty minutes.

How can you add a heartbeat without hiding a job failure?

The heartbeat call must not turn a successful job into a failure without an intentional policy, and it must not overwrite the job's real exit status. Use bounded network timeouts. Keep the heartbeat endpoint secret because anybody who can call it may be able to create a false success signal.

Never put heartbeat URLs in public source

Treat each endpoint as a credential. Store it in a secret manager or environment configuration, limit who can read it and rotate it after exposure.

For high-value jobs, consider a second verification such as checking the age, size or integrity of the output. A completion ping from a script bug can otherwise report success before the expected artifact exists.

Who needs the missed-job alert?

A missed image-optimization task may wait for business hours. A missed database backup may require immediate triage. Apply severity based on the protected outcome rather than giving every scheduled job the same route.

Include the last successful completion, current overdue duration, recent schedule changes and first-response instruction. Avoid repeatedly notifying the same overdue job unless escalation rules require it.

Test failure and recovery

  1. Use a safe non-production job or approved test schedule.
  2. Confirm a successful completion records exactly one heartbeat.
  3. Suppress the heartbeat and verify the alert after the grace window.
  4. Restore the signal and verify recovery is recorded once.
  5. Check that the original job exit code and logs remain intact.
  6. Record the test date and owner.

Never create a production failure test against a client system without explicit authorization and a rollback plan.

Plan checks, alert ownership and recovery for your client sites.

References

Privacy choices

The Google tag is requested only after Accept analytics or a valid saved acceptance.

Reject analytics withdraws consent for this page. If storage is available, your answer is saved for later pages. Advertising consent stays denied. Read the privacy notice.