Avoid overlap in deployed instances running

On git push when (re)deploy starts on Koyeb - is there a way to close/stop the old instance AFTER the build step but BEFORE new deploy step.
I have apps that cannot be started concurrently and getting errors on the new container logs that it detected another instance running. Then I saw that the old container was still stopping.

Maybe a related question - any way to make containers stop faster? Like a “quick stop” or “forced stop” ?

Hello @Alex2,

No, currently it’s not possible to stop the old deployment before starting the new one.
However, this is a behavior when your service is using Volumes. This is not optimal as there are some limitations for your service. For example, you can use only one replica. Scale to zero and autoscaling are not available.

We have different deployment strategies on our roadmap but no ETA.

As for the second question, no, we don’t expose any configuration options for stopping. We send a KILL command to your app and wait 30s before force killing it.