#Multiple cron jobs in a single python file

10 messages · Page 1 of 1 (latest)

thick tapir
#

Hi there!

Does railway support running multiple (and different) cron schedules for a single python file? I have something I need to run every two hours and then one script I just need to run once daily!

Thanks so much!

proven lodgeBOT
#

Project ID: 5145c507-f1f3-4fe5-ba5b-fc6296e6e095

thick tapir
#

5145c507-f1f3-4fe5-ba5b-fc6296e6e095

turbid stratus
#

Do you mean like two different python scripts in a single repository?

thick tapir
#

Yes that's correct! I need one script to run every 2 hours (main.py) and one to run once daily at 5pm (archive_projections.py)

turbid stratus
thick tapir
#

Okay i can do that! Thanks!

turbid stratus
#

you are welcome!

green parrot
#

This is correct, thanks for the help uxuz!

#

!s