Cron Job Failure Alerts
Get cron job alerts in Slack, email, or Discord.
Send a check-in after your scheduled job succeeds. If an expected check-in is missed beyond its grace period, PingCron queues an alert to your saved destinations. Start with one job, confirm its heartbeat, and check that an alert test reaches you.
5 monitors free · Email, Slack, and Discord included · No credit card
Illustrative example: an hourly sync misses a check-in
14:00 — success received
An interval monitor receives a success check-in. With a one-hour interval, the next receipt is expected by 15:00.
15:10 — grace ends
With ten minutes of grace and no new receipt, the monitor is overdue. The periodic checker can mark it down and queue an alert.
Investigate, then verify recovery
Check job and network logs. A later successful check-in can return the monitor to up and queue a recovery notification.
Illustrative timing, not a delivery guarantee. Detection runs periodically; queue processing, retries, and the notification provider affect delivery. A missing receipt does not identify the cause.
Setup
Send success only after the work succeeds
Create a monitor with the real interval or cron schedule, timezone where applicable, and grace period. Allow for normal runtime and scheduler delays.
Before
0 2 * * * /scripts/backup.sh
After
0 2 * * * /scripts/backup.sh && curl -fsS --max-time 10 "YOUR_MONITOR_SUCCESS_URL"
Replace the placeholder with the monitor’s actual success URL. The && operator sends the check-in only if backup.sh exits successfully. Make the script return a failure status when required work fails. Run it through the scheduler and confirm the receipt in PingCron; a copied URL does not install monitoring. This example cannot prove a backup is restorable.
Set up and verify Slack cron job alerts
Two URLs do different jobs: your monitor’s heartbeat URL receives signals from your job; the Slack webhook lets PingCron send messages to your Slack channel. Keep both URLs private.
- Create an incoming webhook for the intended Slack channel. Your workspace may require an administrator to approve the app. Follow Slack’s official webhook instructions.
- Open the monitor owner’s Settings → Notifications in PingCron. Paste the Slack webhook URL and select Save changes.
- Select Send test, look for the labeled message in Slack, then select I received this test in PingCron. If it does not arrive, check the saved destination and the displayed test result before relying on alerts.
- Run your actual job through its scheduler and confirm the successful heartbeat in PingCron. On an isolated test monitor, let a check-in go missing, verify the down alert, then send success and verify recovery.
PingCron saves one Slack webhook URL per account. The owning account’s monitors share that destination; there is no per-monitor Slack channel routing. Shared Slack notifications do not grant other people dashboard access.
A destination test checks receipt of a test message. It does not simulate a missed run, change monitor status, or guarantee future delivery. A heartbeat records what the job reported; it does not prove the output is correct.
Prefer email or Discord?
In the same Notifications settings, enable email alerts to the account email address, or save a Discord channel webhook URL. Save changes, send the channel’s test, and confirm receipt. Slack, email, and Discord already work on Free; custom outbound webhooks require a paid plan.
When is Pro worth considering?
Start with five monitors and seven days of history free. If up to five jobs, seven-day history, and those alerts meet your needs, keep using Free.
For one account owner, Pro includes up to 50 monitors, 30-day receipt history, and custom outbound webhooks for $9.99/month. Consider it when you need more than five jobs, older receipts for investigations, or a JSON alert endpoint. A custom integration may need an adapter; it is not a native on-call integration.
Need shared dashboard access? Compare Team and the other plans. Receiving an alert is separate from having a dashboard seat.
Compare all plans and limitsAlready verified the fit? Choosing Pro starts account creation, then checkout for the paid plan.
Choose Pro — $9.99/monthFAQ
Related monitoring guides
Set up one job. Verify one alert destination.
Create the monitor, install its heartbeat, and confirm a scheduled check-in. Save your alert destination and check that its test reaches you.
Set up my first cron alert5 monitors free · Email, Slack, and Discord included · No credit card