R
Railway14mo ago
codico

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
Percy
Percy14mo ago
Project ID: 09bf07b8-3bc8-438d-8d8e-8e3b6d26d05a
codico
codicoOP14mo ago
09bf07b8-3bc8-438d-8d8e-8e3b6d26d05a
Brody
Brody14mo ago
please share on why you might need such a high restart value?
codico
codicoOP14mo ago
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
No description
codico
codicoOP14mo ago
"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.
Brody
Brody14mo ago
I asked so I could possibly provide a better solution, please calm the attitude
codico
codicoOP14mo ago
Sorry!
Brody
Brody14mo ago
use this to restart the service https://railway.app/template/fwH-l3 your usecase is exactly what it was made for
codico
codicoOP14mo ago
Oh that's awesome! Thank you for the recommendation!
Brody
Brody14mo ago
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
codico
codicoOP14mo ago
Sorry for the attitude! I still think the behavior is a bug though, but if this solves my usecase ill use it!
Brody
Brody14mo ago
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
codico
codicoOP14mo ago
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!
Brody
Brody14mo ago
let me know if you have any issues with that template
Want results from more Discord servers?
Add your server