R
Railway•9mo 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•9mo ago
Project ID: N/A
Nathan
Nathan•9mo ago
N/A
Brody
Brody•9mo ago
are you using replicas
Osyris
Osyris•9mo ago
No description
Osyris
Osyris•9mo 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•9mo ago
youre not nathan
Nathan
Nathan•9mo ago
There are two of us Haha
Brody
Brody•9mo ago
explain 🤣
Nathan
Nathan•9mo ago
We are working on the same project together. I just wanted to kick off the thread.
Brody
Brody•9mo ago
gotcha set RAILWAY_DEPLOYMENT_OVERLAP_SECONDS to 0
Osyris
Osyris•9mo ago
This is an environment variable?
Brody
Brody•9mo ago
service variable, yeah
Osyris
Osyris•9mo ago
Fancy, will give that a shot. Thanks!
Nathan
Nathan•9mo ago
🎉
Brody
Brody•9mo ago
desired effect accomplished?
Osyris
Osyris•9mo ago
That seemed to fix it. Thank you! meowpensivepray
Brody
Brody•9mo ago
no problem!