R
Railway14mo 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
Brody14mo ago
hello, mind sharing your usecase?
mikaela
mikaelaOP14mo 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
Brody14mo ago
no worries, was just asking so I could give you the best answer
mikaela
mikaelaOP14mo ago
ty
Solution
Brody
Brody14mo ago
i think this template would do exactly what you want! https://railway.app/template/fwH-l3
mikaela
mikaelaOP14mo ago
thank you again!
Brody
Brody14mo ago
let me know if you need any help with it, but be sure to read the overview
mikaela
mikaelaOP14mo ago
okay so from my understanding, it restarts my project on the desired cron schedule using an account token?
Brody
Brody14mo ago
correct for a restart every 24 hours at 12am, you can use the 0 0 * * * expression
mikaela
mikaelaOP14mo ago
okie dokie
Want results from more Discord servers?
Add your server