Slack Cron Job Alerts — Know the Instant a Job Fails
CronJobPro sends real-time failure, recovery, and circuit-breaker alerts directly to your Slack channel, so your team never misses a broken scheduled job. Connect in under two minutes with a Slack Incoming Webhook — no bot tokens, no OAuth dance.
Start freeHow Slack alerts work
When a cron job fails — a non-2xx response, a timeout, a connection or DNS error — CronJobPro fires an alert to every notification channel attached to that job, including your configured Slack channel. You also receive a recovery notification when the job succeeds again, and a separate alert if the circuit breaker auto-disables the job after repeated consecutive failures. An optional alert threshold lets you suppress noise until a job has failed N times in a row before any message is posted.
Set up Slack notifications
You'll need your Slack Incoming Webhook URL.
- 1
Create a Slack app and enable Incoming Webhooks
In your Slack workspace, go to api.slack.com/apps, create a new app (or open an existing one), navigate to Features → Incoming Webhooks, and toggle the feature on.
- 2
Add the webhook to a channel
Click "Add New Webhook to Workspace", select the Slack channel where alerts should appear (e.g. #alerts or #oncall), and authorise the app. Slack will generate a Webhook URL starting with https://hooks.slack.com/services/…
- 3
Copy the Webhook URL
Copy the full Incoming Webhook URL that Slack displays. Keep it private — anyone with this URL can post messages to your channel.
- 4
Add a Slack notification channel in CronJobPro
In CronJobPro, go to Settings → Notifications, click Add Channel, choose Slack, paste the Webhook URL, give the channel a name, and save. Use the Test button to verify a message arrives in Slack.
- 5
Attach the Slack channel to your jobs
Open a cron job (or heartbeat monitor), navigate to its Notifications settings, and select the Slack channel you just created. Optionally set an alert threshold so alerts only fire after N consecutive failures.
- 6
Deploy and let CronJobPro watch
Save the job. From this point on, failure, recovery, and circuit-breaker-disabled events will post alert messages to your chosen Slack channel automatically.
Frequently asked questions
Which events trigger a Slack alert?
CronJobPro sends a Slack message when a job fails (non-2xx HTTP response, timeout, or connection/DNS error after your configured retries), when a previously failing job recovers, and when the circuit breaker auto-disables a job after repeated failures.
Can I suppress alerts for occasional, transient failures?
Yes. Each job has an alert threshold setting. Set it to N and CronJobPro will only post to Slack after N consecutive failures, which cuts down on noise from one-off blips.
Does this work for heartbeat / dead-man's-switch monitors too?
Yes. CronJobPro supports both scheduled HTTP cron jobs and heartbeat monitors. Both types use the same notification channels, so you can route heartbeat alerts to the same Slack channel as your scheduled jobs.
Is one Slack channel shared across all my jobs, or can I use different channels per job?
You can create multiple notification channels under Settings → Notifications — each with its own Webhook URL pointing to a different Slack channel — and attach whichever one you want to each individual job.
Other integrations
Monitor your cron jobs in Slack
Schedule HTTP jobs and heartbeat monitors, then get failure and recovery alerts where your team already works.