R
Railway8mo ago
chell

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