What Is a Cron Job? Definition and Monitoring
A cron job is a scheduled task that runs automatically on a Unix-like system at a time defined by a cron expression. The name comes from cron, the time-based job scheduler built into Linux, macOS, and most Unix systems since the 1970s. A cron expression like 0 3 * * * means "run at 3:00 AM every day." The system's cron daemon reads these expressions from a crontab file and executes the associated command at the specified time.
Cron jobs handle work that needs to happen on a schedule without human intervention: nightly database backups, hourly report generation, clearing temporary files, syncing data between systems, sending scheduled emails, or renewing SSL certificates. Most production servers run at least a few cron jobs, and many run dozens.
Why cron jobs need monitoring
The problem with cron jobs is how they fail. A web server that goes down produces an immediate error — users see it, load balancers detect it, uptime monitors catch it. A cron job that stops running produces silence. The backup that was supposed to run at 3 AM simply doesn't, and nothing alerts anyone unless monitoring is explicitly set up. The job might fail because the disk filled up, a dependency moved, a permissions change broke the script, or the cron daemon itself stopped — and in every case the failure mode is the same: nothing happens, quietly.
Cron monitoring (also called heartbeat monitoring or dead man's switch monitoring) works by inverting the check. Instead of polling the job, the job pings a monitoring endpoint after each successful run. If the ping doesn't arrive within the expected window, the monitor triggers an alert. This catches both crashed jobs and jobs that never started.
How WatchCron handles cron jobs
WatchCron's cron job monitoring supports both simple intervals and full cron expressions — you enter 0 3 * * * and the system knows exactly when the next run is due, with a cron expression builder if you need help with the syntax. A configurable grace period accounts for clock drift, and alerts fire through email, Slack, Telegram, or any connected channel when a job misses its window.
Related terms: uptime, health check, SLA, incident management
WatchCron alerts you when scheduled tasks stop running. Supports cron expressions, grace periods, and 10+ alert channels. Free plan includes 20 checks.
Start FreeFrequently Asked Questions
Start monitoring in under 2 minutes
Free plan includes 20 checks. No credit card required.
See Plans & Pricing