Scheduled rebooting memory leak
Hi, it would be nice with scheduled rebooting if possible to combat memory leak in backend. Yes it's not optimal to have a memory leak but it's a very small leak I'm trying to debug in the meantime I want to reboot the backend once a day.
17 Replies
Project ID:
N/A
thanks for sharing your usecase!
Solution
this template was made with your exact use case in mind -
https://railway.app/template/fwH-l3
thanks
let me know if you run into any difficulties
Hi, I tested this out but for me it did not work as planned
it's a bit hard to debug because I don't know what part I've done wrong
I think it would make more sense in your instructions to put the "deploy this template" first because it I put the schedule_1 and stuff like that in my other service
you could also do it in code. I'm also doing a restart once a day with a cron job
node+nestjs
this is exactly what the service I made does.
have you read the templates overview? https://railway.app/template/fwH-l3
I thought I did a pretty good job at explaining every little detail needed to deploy it
seems to work now
as a railway beginner i didn't understand you had to deploy the template
uhhh well i would have never imagined id need to tell you to deploy the template
can you help me understand the thought process behind being able to use a template without ever deploying it?
I don't know I must be stupid
i thought I would make it myself by following the text and skip the template
I never used CRON before so this might add to the confusion. I followed everything in the text, I put the schedule_1 and token on my service variables for the thing I wanted to restart
anyway I don't think there is much to improve in the instructions, it comes from inexperience with both railway and cron on my side
sounds good, so you did get it to work in the end?
yes
awsome, and i always wanna hear peoples usecase for it, would you mind sharing?
same as this threads title?
ye
cool, thanks for sharing
thanks