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
- You create a check and set how often the job must finish successfully.
- Pingovator gives you a secret link.
- You add a call to this link at the end of your job — so that the link is called only on successful completion.
- 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
| Setting | What it means | Range |
|---|---|---|
| The job must finish successfully | The job’s real schedule: every 5 minutes, every hour, once a day… | from 1 minute to 30 days |
| Grace period | Extra time in case the job started or finished a little late | from 0 to 24 hours, 5 minutes by default |
| Maximum job duration | Only needed for the “Start” and “Success/Fail” signals, see below | from 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.
Connecting the link
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