#Multiple cron jobs in a single python file
10 messages · Page 1 of 1 (latest)
Project ID: 5145c507-f1f3-4fe5-ba5b-fc6296e6e095
5145c507-f1f3-4fe5-ba5b-fc6296e6e095
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)
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.
Set a Start Command | Railway Docs
Learn how to set up a start command in your service to run your deployments on Railway.
Okay i can do that! Thanks!
you are welcome!