---
title: "Heartbeat monitoring for scheduled jobs"
url: "https://cronmissed.com/learn/heartbeat-monitoring.md"
canonical_url: "https://cronmissed.com/learn/heartbeat-monitoring"
last_updated: "2026-11-03"
type: "conceptual"
summary: "How heartbeat monitoring works: a ping per run, a schedule, a grace time, and the states a check moves through from new to up, late and down."
related: ["https://cronmissed.com/learn.md", "https://cronmissed.com/learn/dead-mans-switch.md", "https://cronmissed.com/learn/heartbeat-vs-uptime-monitoring.md", "https://cronmissed.com/learn/start-and-finish-pings.md", "https://cronmissed.com/learn/cron-monitoring.md", "https://cronmissed.com/docs/checks.md"]
---

# Heartbeat monitoring for scheduled jobs

> **For AI agents:** the complete index of CronMissed pages is [llms.txt](https://cronmissed.com/llms.txt). Every page is also served as markdown at its URL plus .md.

How heartbeat monitoring works: a ping per run, a schedule, a grace time, and the states a check moves through from new to up, late and down.

Heartbeat monitoring turns the usual direction round: your job calls the monitor. Each run requests a URL, the monitor compares the arrival times with an expected schedule, and it alerts when a ping is late, reports a failure, or a started run never finishes.

## What does a check know?

- The ping URL, which is its identity and its only credential.
- The expected schedule: a period such as "every 24 hours", or a cron expression with a time zone.
- The grace time: how long a ping may be late before an alert goes out.
- The channels that receive alerts: email, webhooks, Slack, Discord, Telegram and ntfy.

## Which states can a check be in?

| State | Meaning |
| --- | --- |
| new | No ping has arrived yet. A new check does not alert unless you turn on a first-ping deadline. |
| up | The last ping arrived on time. |
| late | The expected ping has not arrived, but the grace time is not over. No alert yet. |
| down | The grace time passed with no ping, or the job reported a failure. One alert goes out. |
| paused | Monitoring is off. A ping can bring the check back, unless you chose to stay paused. |

## Which signals can a job send?

| URL | Meaning |
| --- | --- |
| /<uuid> | The job finished successfully. |
| /<uuid>/start | The job started; if no finish follows within the grace, the check goes down. |
| /<uuid>/fail | The job failed; the check goes down at once. |
| /<uuid>/<0-255> | The job finished with this exit status; 0 is success and anything else is a failure. |
| /<uuid>/log | Record an event and a body without changing the state. |

A POST body of up to 100,000 bytes is kept with the ping, which is where error output belongs. Details are in the [pinging API docs](https://cronmissed.com/docs/pinging-api.md).

## Why add a grace time?

Real jobs vary. A backup that takes 8 minutes most nights takes 14 after a big change. A grace time absorbs normal variation and keeps alerts meaningful. [Choosing a grace time](https://cronmissed.com/learn/choosing-grace-time.md) has a rule and worked examples.

## Questions

### How often can a job ping?

Up to five recorded pings a minute per check. Beyond that, extra requests are answered but not recorded.

### Does heartbeat monitoring need an agent on the server?

No. Anything that can make an HTTPS request can ping: curl, wget, a language's HTTP library, a scheduler's webhook step.

## Related pages

- [Dead man's switch](https://cronmissed.com/learn/dead-mans-switch.md)
- [Heartbeat vs uptime monitoring](https://cronmissed.com/learn/heartbeat-vs-uptime-monitoring.md)
- [Start and finish pings](https://cronmissed.com/learn/start-and-finish-pings.md)
- [Cron monitoring](https://cronmissed.com/learn/cron-monitoring.md)
- [Checks](https://cronmissed.com/docs/checks.md)

## Related

- [Cron monitoring explained: concepts and fixes](https://cronmissed.com/learn.md)
- [What is a dead man's switch in monitoring?](https://cronmissed.com/learn/dead-mans-switch.md)
- [Heartbeat monitoring vs uptime monitoring](https://cronmissed.com/learn/heartbeat-vs-uptime-monitoring.md)
- [Start and finish pings for long-running jobs](https://cronmissed.com/learn/start-and-finish-pings.md)
- [Cron monitoring for every server and pipeline](https://cronmissed.com/learn/cron-monitoring.md)
- [Check fields, limits and options](https://cronmissed.com/docs/checks.md)
