Cron Job using Python
Hello, I am trying to create a cron job for my project using Python on railway.app.
I found a link to creating cron jobs using JS on the railway blog [https://blog.railway.app/p/cron-jobs], however I can't replicate the same using Python.
Can anyone help?
5 Replies
Project ID:
N/A
Yes, you can set up a Python cron job on Railway using Celery. You can find a guide on how to do this at https://cronitor.io/cron-reference/python-cron-jobs#celery-cron-jobs.
⚠️ experimental feature
N/A
For python I’m not a fan of using cron, I prefer the schedule package. Check it out here
@tech_savvy_guy
https://schedule.readthedocs.io/en/stable/
Thanks a lot for the suggestion. Will definitely check it out 😄