Site sections

Background jobs (cron, backups, imports)

How to make sure a scheduled job — a backup, an import, a mailing — ran on time, and get a message if it did not start or failed.

Ordinary checks reach out to your site themselves. A scheduled job cannot be checked that way: a backup or an import runs inside the server and is invisible from outside. So here it works the other way round — the job itself tells Pingovator it has finished. If that message does not arrive in time, you get a notification.

This kind of check is also called a heartbeat.

How it works

  1. You create a check and set how often the job must finish successfully.
  2. Pingovator gives you a secret link.
  3. You add a call to this link at the end of your job — so that the link is called only on successful completion.
  4. If the link is not called in time (including the grace period), an incident opens and notifications go out.

No site address and no check locations are needed here.

Settings

SettingWhat it meansRange
The job must finish successfullyThe job’s real schedule: every 5 minutes, every hour, once a day…from 1 minute to 30 days
Grace periodExtra time in case the job started or finished a little latefrom 0 to 24 hours, 5 minutes by default
Maximum job durationOnly needed for the “Start” and “Success/Fail” signals, see belowfrom 1 minute to 7 days, 1 hour by default

Example: a backup runs every night and takes about 20 minutes. Set “every 1 day” and a grace period of 1 hour.

After creating the check, Pingovator shows the link and a ready-made Linux command:

your-command && curl -fsS "https://pingovator.com/api/heartbeat/v1/…"

Replace your-command with your own command. The && means: call the link only if the command finished without an error.

The link can be called with a GET or POST request — from cron, a script, Windows Task Scheduler, CI/CD or your application code.

“Start”, “Success” and “Fail” signals

For a simple check, the success link is enough. Long jobs have two more:

  • Run started (/start) — the job has started. From then on Pingovator waits for it to finish no longer than the maximum job duration plus the grace period.
  • Successful run — the job finished well.
  • Run failed (/fail) — the job reports that it failed. An incident opens immediately, without waiting.

With the “Start” signal you also learn about a job that hung: it started but never finished.

Recovery

As soon as the job calls the success link again, the incident closes and you get a recovery message.

Tips

  • Put the link call at the very end of the job, after all the important steps. Otherwise you will get “success” even if the last step did not work.
  • Do not make the grace period too small: a job may start a minute late because of server load.
  • During maintenance, a “Fail” signal does not create an incident.

Updated November 24, 2026

Didn’t find the answer? Write to us — we will help and add it to the help.

Contact us