Always restart crashes after 10 restarts
I configured my Railway application to always restart on error, however it will still permanently crash after 10 errors and requires a manual restart.
Does this feature not work?
For now i changed to Restart X times and set the count to 100.
14 Replies
Project ID:
09bf07b8-3bc8-438d-8d8e-8e3b6d26d05a
09bf07b8-3bc8-438d-8d8e-8e3b6d26d05a
please share on why you might need such a high restart value?
I have a memory leak I haven't been able to fix yet so I am automatically restarting once a night, and wanted to rely on the feature "Automatically restart on failure" for this.
But even if I configure this, it does not restart more than 10 times
"Always restart the service if stopped for any reason" should work as it says. I think why I am relying on it is irrelevant. I would look at it as a bug.
I asked so I could possibly provide a better solution, please calm the attitude
Sorry!
use this to restart the service
https://railway.app/template/fwH-l3
your usecase is exactly what it was made for
Oh that's awesome! Thank you for the recommendation!
it was built with go, it will have an extremely small memory footprint, I've been running it for few months and I think it's sub 20 cents per month
Sorry for the attitude!
I still think the behavior is a bug though, but if this solves my usecase ill use it!
the way I understood the always option was, restart on both error and success codes, not restart infinity, what I think was a bug is the amount of restarts getting hidden
Yeah that's what I figured, but I guess I just understood it the other way, and hiding the option reinforced that theory!
but nonetheless good night to you, and thanks for the help!
let me know if you have any issues with that template