Notify for failed jobs daily

Recipe ToolsMarketing

What it does

When a scheduled check runs every 24 hours, this automation searches for jobs with failure counts above a threshold. It logs those jobs to a list and updates a lookup table so the team knows which ones need attention.

Who it's for

Operations teams who monitor automation health and need to track recurring job failures.

How teams use this

Monitor job health daily

Run the check every 24 hours to catch jobs with more than 100 failures. The team gets a consistent view of which automations need repair without manual review.

Alert the engineering team

Extend this automation to send a message to an engineering channel when the error list is populated. Include the job names and failure counts so the team can prioritize fixes.

Adjust the failure threshold

Change the job count threshold from 100 to a lower or higher number based on team tolerance. The lookup table comparison stays the same and only the condition changes.

How it works

  1. Check every 24 hours. The automation runs on a daily schedule to scan for failed jobs across all monitored items.
  2. Search for jobs with failures. Query all jobs and count the failed instances in each one so the automation can identify which ones exceed the threshold of 100 failures.
  3. Check the lookup table. Search the lookup table for each job to see if it has been flagged before, then compare the current failed count to the stored count.
  4. Log jobs above threshold. When a job has more than 100 failures, add it to the error list and update or create an entry in the lookup table to track it.
  5. Maintain the lookup table. Update existing entries or add new ones to the lookup table so the next check can compare failure counts and detect changes.