Log and sync Failed Job Tracker lookup table
Recipe Tools
What it does
When someone calls this function, this automation searches the Failed Job Tracker lookup table for a matching entry ID. It adds a new entry if none exists, updates the existing one if found, and returns the result.
Who it's for
Engineering teams who need to track failed jobs and keep lookup table records current without manual updates.
How teams use this
Track failed jobs in real time
Call this function when a job fails so the Failed Job Tracker lookup table captures the event. The entry is added or updated automatically, and the caller receives confirmation back.
Monitor job failures across systems
Invoke this function from multiple workflows so all failed jobs feed into one lookup table. Teams can query the table to see patterns and trends without building separate tracking systems.
Add retry count and timestamp fields
Extend the function to include a retry count and timestamp when adding or updating entries. This requires adding those fields to the lookup table schema and the function parameters.
How it works
- Call the function in real time. A function call starts this automation to search and manage entries in the Failed Job Tracker lookup table in real time.
- Search for the entry. Search the Failed Job Tracker lookup table for an entry that matches the provided ID so the next step knows whether to add or update it.
- Add or update the entry. If the entry does not exist, add it to the Failed Job Tracker lookup table. If it exists, update it with the current information and return the result to the caller.