Get 30% Discount on Business Pack Order here Click Here
Install our app 🪄 click on the icon in the top right of the address bar.

Heartbeats (Cron / Scheduled jobs)

Created on 5 September, 2025Tutorials • 466 views

Learn how to setup Heartbeats (Cron / Scheduled jobs)

What it does: Confirms cron jobs and background workers are running. Each job pings a unique URL within an expected interval.


Quick setup

  1. Go to Heartbeats → Create heartbeat.
  2. Set a name, expected frequency (e.g., every 15 min), and copy the unique ping URL.
  3. Add a request to the URL at the end of your job.


Examples

# Cron every 15 minutes
*/15 * * * * curl -fsS --retry 3 https://uptimer24.com/api/heartbeat/XXXXXXXX >/dev/null
# Node.js
await fetch('https://uptimer24.com/api/heartbeat/XXXXXXXX', {method:'POST'})


Best practices

  1. Set expected interval slightly longer than the job schedule to allow execution time.
  2. Ping on success; optionally ping a fail URL when errors occur.


Troubleshooting

  1. No heartbeat? Ensure the job actually runs and outbound HTTPS is allowed.
  2. High variance jobs → configure a wider grace period to avoid false alerts.