What is cron job monitoring?
On this page
Cron job monitoring tells you when a scheduled job does not do its work. A job can fail in three ways: it never started, it started and failed, or it started and never finished. A heartbeat check that sees a ping at the start and the end covers all three.
Why do scheduled jobs fail silently?
A scheduled job has no user watching it. If it stops, nothing breaks loudly; the data just goes stale. Log files help only after you already suspect a problem, and error trackers see only the errors a running job reports. Neither sees a job that is not running.
What are the three failure classes?
| Failure | Typical cause | What catches it |
|---|---|---|
| Never started | Scheduler stopped, schedule deleted, machine off, platform skipped the run | The success ping does not arrive |
| Started and failed | Bad credentials, full disk, changed schema, missing file | A /fail or exit status ping, or no success ping |
| Started and hung | Lock wait, network stall, deadlock | A start ping with no finish inside the grace |
What is the smallest useful setup?
- Create a check with the job's schedule and a grace time.
- Add the ping to the job: one curl after the command.
- Choose where alerts go: email, Slack, Discord, Telegram, ntfy or a webhook.
- For long jobs add the start ping, and report the exit status.
Everything else, such as projects, teammates, badges and the API, comes after that. Monitor a crontab job walks through it on a Linux server, and the guides cover other platforms.
Questions and answers
- Log monitoring reads what jobs wrote. Cron monitoring expects a signal on a schedule and alerts on its absence, which also covers jobs that wrote nothing because they never ran.
- A ping is one small HTTPS request, with a short timeout, ignored on failure. It adds well under a second to a run.
What is the difference between cron monitoring and log monitoring?
Does monitoring slow the job?
Create a check, add one curl to the job, and CronMissed alerts you when a ping is late or reports a failure.
Start monitoring