Justintime50 / harvey

The lightweight Docker Compose deployment runner.
https://github.com/Justintime50/harvey-ui
MIT License
13 stars 3 forks source link

Do Not Allow Multiple Concurrent Pipelines for the Same Project #58

Closed Justintime50 closed 2 years ago

Justintime50 commented 2 years ago

Docker Compose does weird things when you start two concurrent docker compose up -d commands for the same project (only possible because they are running in separate threads via Harvey) ultimately leading to Docker crashing completely.

Let's add a check prior to running a pipeline that will lock deployments for that project and only release it once the pipeline is finished (success or fail) so that we don't inadvertently break Docker.