Skip to content

Heartbeat monitoring

Know when a cron job stops running.

Cron jobs, backup scripts and queue workers serve no requests, so nothing can check on them from outside. A heartbeat flips the direction: your job pings a unique RealUptime URL each time it runs, and silence is what raises the alert.

What it catches

The failures an HTTP monitor never sees.

The job that silently stopped

The cron entry was removed, the host rebooted and the job never came back, or the script crashed before the last line. No ping arrives, and the monitor goes down once the interval and its grace period pass.

The run that failed

Send /fail with the exit code and the run is recorded as failed, with its detail, instead of waiting for the next ping to go missing.

The run that got stuck

Send /start when the job begins and set a maximum runtime. A run still open past it is marked stuck, so a hung job alerts while it is still hung.

How it works

Three steps from nothing to an alert you can trust.

01

Create a heartbeat

Name it after the job, set the expected interval and an optional grace period for a job whose runtime varies. You get a ping URL once; it is stored hashed.

02

Ping at the end of the job

Add the ping after the work succeeds, for example run-backup.sh && curl -fsS "$PING_URL". GET or POST both work.

03

Get alerted on silence

A late ping marks the check down and alerts through the same channels as every other monitor: email, Slack, PagerDuty, webhooks and the rest. The next ping is the recovery.

On your plan

Heartbeats are on every plan, including Free.

  • Counts as one monitor against your plan, at no extra cost
  • Expected interval up to 24 hours, as often as every 3 minutes on Free, 30 seconds on Pro, 30 seconds on Business, plus an optional grace period
  • Start and fail pings, with a maximum runtime of up to 24 hours for stuck runs
  • Never pages before the first ping, so you can create one before the job exists
  • Also from the API, the CLI and MCP: realuptime heartbeats create