Generate and store files from Ruby code every 5 minutes
Recipe ToolsMarketingDeveloper Tool
What it does
Every 5 minutes, the clock triggers this automation to run Ruby code that generates file contents. The generated file is stored in Workato Files so it persists and remains accessible.
Who it's for
Engineering teams who need to generate and archive files on a scheduled interval without manual intervention.
How teams use this
Archive logs on a regular schedule
Generate log files every 5 minutes from Ruby code and store them in Files for compliance and debugging. The team can retrieve historical logs without setting up external storage.
Export data snapshots hourly
Adjust the clock interval to run hourly instead of every 5 minutes so data snapshots are captured and stored at a slower cadence. The Ruby code and file storage remain unchanged.
Add metadata tags to stored files
Extend the Ruby code to include metadata such as timestamps or data checksums so each file stored in Files is tagged for easier identification and auditing.
How it works
- Run every 5 minutes. The automation starts on a 5-minute schedule to generate and store file contents consistently.
- Execute Ruby code to create file. Run custom Ruby code that generates the file contents based on your logic and prepares it for storage.
- Store file in Files. Save the generated file to Files so it is retained and available for retrieval or further processing.