Schedule a file to run every 10 mins
morganbradbury
HOBBYOP

a year ago

Hi, I have a discord bot service called faceitbot. Inside the repo which is being used for the app, I have a file inside src/auto/autorunfile.ts (.js when compiled). I want the rest of the service to run as normal all the time when the bot does something, but I need this particular file to run every 10 mins or so. How can I do this within Railway?

View Deploy details

ⓘ Deployment information is only viewable by project members and Railway employees.

2 Replies

a year ago

You would need to create a new service for the CRON job and then set up the CRON expression for every 10 minutes, and then set the start command to run your compiled js.


morganbradbury
HOBBYOP

a year ago

Thanks Brody, I'll do that now. Much appreciated


Loading...