Schedule a Python cron task
WayScript allows you to configure your Lair to schedule task execution in minutes.
i = 0
while i < 5:
print("This prints five times.")
i += 1
Open your Lair’s
.triggersfile and add a new
crontrigger. Create a name for your trigger, input the following run command, and set an interval or custom cron syntax for your task. See Triggers for more details.
Press “Run” to execute the run command and start your task’s process execution. Open your “Processes” list and select the running process to see the generated log.
Your task will not be scheduled within your Lair’s development environment. Once you have finished testing, press “Deploy” to create a production environment for your task. See Hosted environments for more details.