Skip to content

Setting up a heartbeat for a cron job

Monitors and PulsesUpdated Jul 16, 20263 min read

Create a Pulse for a cron job or other work that can report its own completion.

Give the Pulse a name, choose the expected interval and grace period, then save it. The monitor provides a tokenized Heartbeat endpoint. Treat that endpoint as a secret and keep it out of source control and logs.

Send the Heartbeat only after the job has completed successfully. The expected interval and grace period form the deadline that niceuptime uses to detect a missed Pulse.

Open the monitor to inspect the recorded receipt after the job reports in.