Best way to run a program on a schedule

Hello,

I’m looking to make an app that runs Python scripts based on individual schedules. For example, I would like to run hello.py every day at 08:00 UTC and goodbye.py every other day at 15:00 UTC.

While it would be possible to run another Python script that just checks every few seconds if a certain time has passed, this feels hugely wasteful and inefficient to have this machine running 24/7.

What would your approach be to orchestrating this situation?

Thank you for your help!

You should try New feature: Scheduled machines. It’s still a very fresh feature but it’s the most straightforward. Others have tried a few things(basically anything you can bundle into a container).

3 Likes

Thanks! For scheduled machines, are specified execution times supported yet? It would be very helpful to specify what time a machine should run, rather than the first run determining the execution time.