Sraraa
What is cron job monitoring?
Detect a scheduled task that stopped running by watching successful heartbeat timestamps.
Why scheduled work goes quiet
A cron process can stop because of a deploy, permission change, queue stall, or host issue. Since no external request is expected, ordinary website checks may never notice.
Send a heartbeat after success
Call the monitor endpoint only after the job completes successfully. Calling at startup can hide a task that later fails. For jobs with variable schedules, set a threshold that allows for normal runtime variation.
Protect the check-in URL
Treat the heartbeat URL like a credential. Avoid committing it to public source and rotate it if it is exposed.
