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?

FailureTypical causeWhat catches it
Never startedScheduler stopped, schedule deleted, machine off, platform skipped the runThe success ping does not arrive
Started and failedBad credentials, full disk, changed schema, missing fileA /fail or exit status ping, or no success ping
Started and hungLock wait, network stall, deadlockA start ping with no finish inside the grace

What is the smallest useful setup?

  1. Create a check with the job's schedule and a grace time.
  2. Add the ping to the job: one curl after the command.
  3. Choose where alerts go: email, Slack, Discord, Telegram, ntfy or a webhook.
  4. 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

What is the difference between cron monitoring and log monitoring?
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.
Does monitoring slow the job?
A ping is one small HTTPS request, with a short timeout, ignored on failure. It adds well under a second to a run.
Know the moment a job goes quiet

Create a check, add one curl to the job, and CronMissed alerts you when a ping is late or reports a failure.

Start monitoring