R
Railway13mo ago
mikaela

setting up auto restarts?

new to railway, is it possible to set up regular auto restarts - like once every 24 hours or so?
Solution:
i think this template would do exactly what you want! https://railway.app/template/fwH-l3
Jump to solution
10 Replies
Brody
Brody13mo ago
hello, mind sharing your usecase?
mikaela
mikaela13mo ago
well i'm working on a nextjs project and i'd like to restart it every so often to stop memory usage just building up and up - there might be an issue with my code causing it but i can't find any errors - still the question stands, is it possible?
Brody
Brody13mo ago
no worries, was just asking so I could give you the best answer
mikaela
mikaela13mo ago
ty
Solution
Brody
Brody13mo ago
i think this template would do exactly what you want! https://railway.app/template/fwH-l3
mikaela
mikaela13mo ago
thank you again!
Brody
Brody13mo ago
let me know if you need any help with it, but be sure to read the overview
mikaela
mikaela13mo ago
okay so from my understanding, it restarts my project on the desired cron schedule using an account token?
Brody
Brody13mo ago
correct for a restart every 24 hours at 12am, you can use the 0 0 * * * expression
mikaela
mikaela13mo ago
okie dokie
Want results from more Discord servers?
Add your server