Log loop iteration results to job status

Recipe Tools

What it does

When a scheduled interval triggers, this automation runs a loop three times and monitors each iteration for errors. Someone can then review the job status list to see which iterations succeeded and which ones failed.

Who it's for

Engineering teams who need to track the outcome of each loop iteration without stopping the entire job on error.

How teams use this

Track batch job results by iteration

Run a loop that processes items in batches and store the job status from each batch. The list shows which batches completed and which had errors, so the team knows what to retry.

Identify and rerun failed iterations

Collect job status from each loop iteration so failed ones can be identified and rerun later without reprocessing the successful ones. Add a filter step after the loop to check status and only retry the ones that failed.

Alert the team on partial loop failures

Store iteration results in the job status list, then send a notification if any iteration failed. The team gets alerted only when something went wrong, not on every run.

How it works

  1. Trigger on a specified interval. Clock starts this automation at the scheduled time so the loop runs on the defined schedule.
  2. Create a loop that runs three times. Build a repeat helper list with size 3, then for each item in the list, monitor the steps inside the loop for errors. If an error occurs, do nothing so the next iteration still runs.
  3. Store results from each iteration. After all iterations finish, accumulate the job status from each one into a list so someone can see which iterations succeeded and which ones encountered errors.