Setting Up Alerts
This guide walks you through configuring alerts so you are notified when crons or jobs fail.
Step 1: Configure your notification channel
- Go to Settings > Notifications
- Choose your alert channel:
- Email — Alerts are emailed to all team members
- Slack — Alerts are posted to a Slack webhook URL
- Discord — Alerts are posted to a Discord webhook URL
- For Slack or Discord, paste your incoming webhook URL
- Click Save
- Optionally, click Test to send a test notification
Getting a Slack webhook URL
- Go to api.slack.com/apps and create a new app (or use an existing one)
- Enable Incoming Webhooks
- Click Add New Webhook to Workspace and select the channel
- Copy the webhook URL
Getting a Discord webhook URL
- Open your Discord server settings
- Go to Integrations > Webhooks
- Click New Webhook, select the channel, and copy the URL
Step 2: Enable alerts on your crons
When creating or editing a cron, set the Alert Threshold:
| Threshold | Behavior |
|---|---|
1 | Alert after the first consecutive failure |
2 | Alert after 2 consecutive failures |
3 | Alert after 3 consecutive failures |
Via the API:
curl -X POST https://app.recurohq.com/api/crons \ -H "Authorization: Bearer YOUR_API_TOKEN" \ -H "Content-Type: application/json" \ -d '{ "name": "Health Check", "url": "https://api.yourapp.com/health", "method": "GET", "cron_expression": "*/5 * * * *", "alert_threshold": 2 }'With this configuration:
- First failure: a warning alert is created (visible in the dashboard)
- Second consecutive failure: a failure alert is sent to your notification channel
- Next success: a recovery alert is sent
Step 3: Enable alerts on your queues
- Go to Queues > [queue] > Edit
- Toggle Alerts Enabled on
- Save
When alerts are enabled on a queue:
- A warning alert is created when a job first fails
- A failure alert is sent when a job exhausts all retries and is dead-lettered
Suppressing alerts during maintenance
If you have planned downtime, create a maintenance window to suppress alerts:
- Go to Maintenance Windows
- Click New Maintenance Window
- Select the resource to suppress (a specific cron, a specific queue, or leave blank for all)
- Set the start and end time
- Optionally add a reason
- Click Create
Alerts for the specified resource are suppressed during the window.
Managing alerts
From the Alerts page:
- Filter by alert type (
failure,warning,recovery,limit_warning) or failure reason - Mark as read to dismiss individual alerts
- Mark all as read to clear the list
- Delete alerts you no longer need
Next steps
- Alerts — Full concept reference
- Alert Configuration Best Practices — Avoid alert fatigue
- Troubleshooting: Not Receiving Alerts — Diagnostic steps