R
Railway•14mo ago
Nathan

Railway running two copies of my container during health checks

I am running into an edge case in my project where two copies of my container are running during health checks. This is causing weird issues, is there a way to turn this off or mitigate this?
17 Replies
Percy
Percy•14mo ago
Project ID: N/A
Nathan
NathanOP•14mo ago
N/A
Brody
Brody•14mo ago
are you using replicas
Osyris
Osyris•14mo ago
No description
Osyris
Osyris•14mo ago
This demonstrates the problem. I push a new commit and it deploys a new copy of my container + runs health check. 1-2min later, it will shutdown the original and keep the new one up This is a discord bot, so I end up with doubled replies when both are running.
Brody
Brody•14mo ago
youre not nathan
Nathan
NathanOP•14mo ago
There are two of us Haha
Brody
Brody•14mo ago
explain 🤣
Nathan
NathanOP•14mo ago
We are working on the same project together. I just wanted to kick off the thread.
Brody
Brody•14mo ago
gotcha set RAILWAY_DEPLOYMENT_OVERLAP_SECONDS to 0
Osyris
Osyris•14mo ago
This is an environment variable?
Brody
Brody•14mo ago
service variable, yeah
Osyris
Osyris•14mo ago
Fancy, will give that a shot. Thanks!
Nathan
NathanOP•14mo ago
🎉
Brody
Brody•14mo ago
desired effect accomplished?
Osyris
Osyris•14mo ago
That seemed to fix it. Thank you! meowpensivepray
Brody
Brody•14mo ago
no problem!
Want results from more Discord servers?
Add your server