Alert on job failures and auto-recover
Recipe Tools
What it does
When a job fails in a specified workflow, this automation checks the error type and job history. It reruns non-rate-limit failures immediately or waits before restarting rate-limited jobs so processing resumes without manual intervention.
Who it's for
Engineering teams who need to monitor workflow health and automatically recover from transient job failures.
How teams use this
Recover from rate limit errors
When a job hits a rate limit, the automation waits the specified time and restarts the workflow, avoiding repeated failures and manual intervention.
Immediately retry non-rate-limit failures
For transient errors that are not rate limits, the automation reruns the job right away so processing recovers faster without waiting.
Skip repeated failures to prevent loops
The automation checks job history to detect repeated failures and only acts on new ones, preventing infinite retry loops that waste resources.
Monitor multiple workflows from one automation
Specify multiple workflow identifiers in the trigger so a single automation handles job failures across all of them, reducing setup overhead and centralizing monitoring.
How it works
- Receive notification of job failure. A real-time alert fires when a job fails in one of the specified workflows, capturing the error type and job details.
- Check if job is repeated. The automation examines the job history to determine whether this is a repeated failure or a new one.
- Route by error type. If the error does not contain a rate limit, the automation reruns the job immediately. If it does, the automation waits before restarting.
- Wait before recovery. For rate-limited errors, the automation pauses for a specified duration to allow the service to recover.
- Restart the workflow. After the wait or immediately for non-rate-limit errors, the automation starts the inactive workflow to resume processing.