a year ago
Hey,
I have set up an app that is set to always restart but it still seems to crash eventually (I think after 500 restarts but it is hard to tell).
The app has a memory leak which we are fixing but in the meantime would like to set it to always restart. I have tried with both setting a number of restarts and setting it to always but regardless it seems to crash and not restart.
Is there anything that would be causign this and is this expected behaviour, looking through the docs I couldn’t see anything but might have missed something.
Many thanks,
1 Replies
a year ago
Hello,
It seems our always isn't actually always, I guess we never envisioned users would knowingly use it to facilitate the restarting of ab application with a memory leak.
But instead, I recommend you use something purpose built to restart an application, this template was made because a user asked for a reliable way to restart their application on a fixed schedule that had a memory.
https://railway.com/template/fwH-l3
Have this template restart your app once a day at the point you have the lowest traffic and you are good to go!
Please let me know if you have any questions about it.
Best,
Brody
Status changed to Awaiting User Response Railway • about 1 year ago
7 months ago
This thread has been marked as solved automatically due to a lack of recent activity. Please re-open this thread or create a new one if you require further assistance. Thank you!
Status changed to Solved Railway • 7 months ago