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

  1. 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.

  2. 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.

  3. 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.

  1. 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.
  2. Open the monitor owner’s Settings → Notifications in PingCron. Paste the Slack webhook URL and select Save changes.
  3. 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.
  4. 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 limits

Already verified the fit? Choosing Pro starts account creation, then checkout for the paid plan.

Choose Pro — $9.99/month

FAQ

Your job sends a heartbeat after successful work. If the expected receipt is missing beyond the configured deadline and grace period, PingCron can mark the monitor down and queue alerts to the owner’s configured, enabled destinations. A missing receipt may mean an execution problem or a reporting/network problem; inspect the job logs to determine why.
Yes. Send a request to the monitor’s /fail endpoint from the failure path. This records a reported failure and queues a down alert when the monitor transitions to down, without waiting for the schedule grace period. Delivery still depends on queue processing and the provider. Repeated failure signals while already down do not each produce another down alert.
PingCron currently saves one Slack webhook destination per account. Monitors use their owning account’s saved destination, so per-monitor Slack channel routing is not available. Choose a service with that routing if it is a requirement.
Check the job’s exit status, the installed heartbeat URL, and outbound network access. In the example, a nonzero exit prevents the success ping. A network failure can also prevent delivery after successful work. Do not replace && with an unconditional success ping to hide the problem.
No. It sends a labeled test message to the saved destination and lets you confirm receipt. Verify the real scheduled heartbeat separately. To exercise missed-run detection and recovery, use an isolated test monitor so the test does not interrupt a production job.
Yes. Free includes five monitors, seven days of history, and email, Slack, and Discord alerts. Their incoming-webhook integrations are included. Pro is $9.99/month for up to 50 monitors, 30-day history, and a custom outbound webhook, for one account owner.

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 alert

5 monitors free · Email, Slack, and Discord included · No credit card