Process batch items every 5 minutes and log results

Recipe ToolsMarketing

What it does

Every 5 minutes, this automation creates a list of items and loops through each one to log details to a job report. It repeats the logging steps for every item in the batch so someone can track progress.

Who it's for

Operations teams who need to monitor batch processes and track item status at regular intervals.

How teams use this

Monitor batch job completion

Run the batch every 5 minutes and log each item as it processes so the job report shows what ran and when. The team sees the full history without manual checks.

Alert on batch item failures

Add a condition in the loop to check if any item failed, then log an alert to the job report. Only items that need attention get flagged for review.

Process items from a database

Replace the static list with a query that pulls items from a database each time the clock triggers every 5 minutes. The loop processes whatever is returned.

How it works

  1. Run every 5 minutes. The Clock starts this automation on a schedule, running every 5 minutes so batch items are processed at regular intervals without manual intervention.
  2. Build the batch list. Create a list of items to process and set up a repeat helper so the loop knows how many times to run through the batch items.
  3. Loop and log each item. For each item in the list, log the item details to the job report and update a variable to track progress through the batch.
  4. Log final batch status. After the loop finishes, log a completion message to the job report so someone knows the batch processed all items.