Alert on scheduled job failure via Pub Sub
Recipe ToolsMarketingDeveloper ToolAPI Integration
What it does
When a scheduled interval arrives, this automation sends an HTTP request and monitors it for errors. If the request fails after three retries, it publishes a message so someone knows the job needs attention.
Who it's for
IT teams who need to know when a scheduled job stops working so they can fix it fast.
How teams use this
Alert on failed data sync
Run a scheduled sync to an external system and publish an alert if it fails after retries. Someone gets notified in real time so the data stays in sync.
Monitor API health checks
Check a critical API endpoint on a schedule and publish an alert when it stops responding. The team knows right away if the service is down.
Add escalation to a Slack channel
Include a step that sends the published message to a Slack channel so the alert reaches the on-call engineer. Only the notification destination changes.
How it works
- Start at the scheduled time. At the specified interval, Clock starts this automation and begins monitoring the steps that follow for any errors.
- Send request to the endpoint. Rest makes an HTTP request to the target endpoint. If it fails, the monitor catches the error and moves to retry.
- Retry the request up to three times. Rest attempts the HTTP request again up to three times. If all retries fail, the automation proceeds to publish the alert.
- Publish message to event topic. Workato Pub Sub sends a message to the Test Event topic so someone knows the job failed and needs attention right away.