Run custom code on a 5-minute schedule

Recipe ToolsMarketingDeveloper Tool

What it does

When the clock triggers every 5 minutes, this automation runs custom Ruby code in Workato Custom Code. The code executes on schedule so a process repeats at regular intervals without manual intervention.

Who it's for

Engineering teams who need to run scheduled tasks or background jobs without someone starting them each time.

How teams use this

Poll an external system for updates

Run code every 5 minutes to check an API or database for new data. The automation fetches and processes changes on schedule without manual checks.

Clean up old records periodically

Execute code to archive or delete expired data from your systems on a regular cadence. The task runs unattended so stale records do not accumulate.

Send periodic status reports

Add code that gathers metrics and sends a summary to a team channel or email on the 5-minute schedule. Include filters to only report on records that meet certain conditions.

How it works

  1. Start on a 5-minute interval. The clock starts this automation every 5 minutes so the code runs repeatedly without someone having to begin it each time.
  2. Run custom Ruby code. Workato Custom Code executes the Ruby script you write. The code runs each time the schedule triggers, handling whatever logic the process requires.