Generate a Python object every 5 minutes
Recipe ToolsMarketingDeveloper Tool
What it does
Every 5 minutes, the clock starts this automation and Py Eval executes Python code to build an object. The result is logged to the job report so someone can review what was generated each cycle.
Who it's for
Engineering teams who need to run Python code on a schedule and track the output.
How teams use this
Monitor a data pipeline every 5 minutes
Generate a status object from Python that tracks pipeline health. Log it to the job report so the team can review execution history without checking logs elsewhere.
Generate test data for integration tests
Use Python to generate test objects on a schedule. Log each object to the job report so the engineering team can verify the test data matches what the system expects.
Add filtering to the Python output
Extend the Python code to filter the object based on a condition before logging. Only objects that meet the condition are written to the job report.
How it works
- Start on a 5-minute interval. The clock fires every 5 minutes to begin this automation, so the Python code runs repeatedly without manual intervention.
- Execute Python code to build object. Py Eval runs Python code that constructs and returns an object. The generated object is passed to the next step for logging.
- Log the object to job report. Write the generated object to the job report so someone can see what was created each time the automation ran.