Log and batch process messages every 5 minutes
Recipe ToolsMarketingWorkato
What it does
When the clock triggers every 5 minutes, this automation logs a message and creates a list. It repeats adding items to that list while an index does not equal the message length, then logs the final result.
Who it's for
Operations teams who need to batch and log recurring data processing tasks.
How teams use this
Batch process recurring data
Run a scheduled job every 5 minutes that collects and logs messages in batches. The loop ensures all items are processed before moving to the next cycle.
Monitor batch job completion
Track each batch run by logging messages at the start and end. The Job report shows when batches begin and finish so the team can audit the process.
Adjust batch size dynamically
Change the repeat condition to filter items by a different length or add a condition to only process messages that meet specific criteria. This lets the team control how many items are batched per run.
How it works
- Start on a 5-minute schedule. The automation starts on a 5-minute schedule to begin the batch processing cycle.
- Log the start message. Log a message to the Job report in Clock to mark when this automation run begins.
- Create the test list. Create a Test list in Clock to hold the items that will be added during the repeat loop.
- Repeat and add items. Repeat adding items to the Test list while an index does not equal the message length minus one, then log completion to the Job report.