A job that exits without an obvious error can still leave your product with stale data or unfinished work. Monitor the expected completion signal, not just the server.
The quiet failure problem
A website can be online while a scheduled task has stopped running. Data imports, report generation, cleanup routines, billing workflows, and queue maintenance may fail without affecting the homepage immediately.
These failures are easy to miss because the process may run in the background and produce no visible error for customers until much later.
Use a heartbeat to confirm completion
A heartbeat monitor expects a signal from a job on a defined schedule. The job sends that signal after it completes successfully. If the expected signal does not arrive within the configured window, the monitor can notify the responsible team.
Sending the heartbeat only after successful completion is important. If a job sends it at startup, a process that crashes halfway through may still appear healthy.
Send a heartbeat only after a job completes successfully, allow for normal schedule variation, and route missed-run alerts to a clear owner.
Set realistic schedules and grace periods
Choose a check-in interval based on how often the job should run. Add a grace period for normal execution variability, queue delays, and maintenance windows. Too little tolerance creates noisy alerts; too much can hide a real delay.
For jobs with variable duration, distinguish between a missed start and a missed completion. Document the expected runtime and the point at which delayed work becomes operationally important.
Include useful context in notifications
Name the job clearly and route the alert to its owner. Include the expected schedule, last successful heartbeat, and the environment where it runs. Keep credentials and sensitive payloads out of the notification.
If a task depends on another system, monitor that dependency too. A missing heartbeat may be caused by a scheduler issue, a deployment, a network problem, or a dependency outage.
Review the jobs that matter
Start with business-critical tasks and add coverage for jobs whose failure would create stale, missing, or incorrect data. Review the list when schedules change and remove monitors for retired jobs.
Send a heartbeat only after a job completes successfully, allow for normal schedule variation, and route missed-run alerts to a clear owner.