Run Ruby code on a 5-minute schedule

Recipe ToolsMarketingDeveloper Tool

What it does

When the clock triggers every 5 minutes, this automation runs the My_Ruby script. The job report logs each execution so someone can track the results over time.

Who it's for

Engineering teams who need to run scheduled Ruby scripts and monitor their output.

How teams use this

Monitor a scheduled data sync

Run Ruby code every 5 minutes to check and sync data between systems. The job report shows each sync attempt and any errors that occur.

Validate data on a recurring basis

Execute Ruby validation logic at regular intervals to ensure data quality across your systems. Logs capture pass or fail status for audit purposes.

Add conditional logic to the script

Extend the Ruby code to check a condition before running the main logic, so the automation only executes when specific criteria are met.

How it works

  1. Start on a 5-minute schedule. The automation begins every 5 minutes so the Ruby code runs at regular intervals without manual intervention.
  2. Run the My_Ruby script. Execute the My_Ruby custom code to perform the logic needed. The Custom Code environment processes the script and returns the result.
  3. Log the result to the job report. Write the outcome to the job report so someone can review what happened during each execution cycle and spot any errors.