2 years ago
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!
8 Replies
2 years ago
Do you mean like two different python scripts in a single repository?
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)
2 years ago
What you could do is to deploy the same service twice but with two different configurations. Such as modifying the start command https://docs.railway.com/guides/start-command and the cron schedule.
2 years ago
you are welcome!
2 years ago
This is correct, thanks for the help uxuz!
2 years ago
!s
Status changed to Solved adam • over 1 year ago