Sync scheduled jobs from Clock to Aws Sqs
Recipe ToolsMarketingDeveloper ToolCloud PlatformData ParserUtilities
What it does
When the clock triggers every 5 minutes, this automation fetches active job details and searches a lookup table to find matching entries. It sends batches of job data to Aws Sqs so downstream systems stay in sync.
Who it's for
Operations teams who need to keep Aws Sqs queues updated with active job metadata on a regular schedule.
How teams use this
Keep Aws Sqs queues synchronized with jobs
Run the poller every 5 minutes to ensure Aws Sqs always has the latest active jobs and their details. The lookup table mapping keeps data consistent across systems without manual intervention.
Filter jobs by scheduled time window
Add a condition to only send jobs whose scheduled time falls within a specific window, so Aws Sqs receives only the jobs that need to run next. This requires a time comparison in the job details step.
Route jobs to different Aws Sqs queues
Extend the automation to check job type or priority in the lookup table and route batches to separate Aws Sqs queues. This requires adding a conditional branch based on lookup table fields.
How it works
- Poll every 5 minutes. The Clock triggers this automation on a 5-minute interval to check for active jobs and send updates to Aws Sqs.
- Fetch active job details. Get the details of each active job from Workato App, including its name, status, and scheduled time to determine if it should be processed next.
- Match jobs in the mapping table. Search the Stages_Mercatus - Jobs Mapping lookup table in batches to find entries that correspond to the active jobs retrieved in the previous step.
- Send matched jobs to Aws Sqs. Push the batch of matched job entries to Aws Sqs so other systems can consume the latest job metadata and scheduled information.