tushar5526 / sarthi

Vercel for Backend! Easily setup preview environments with just Docker 🐳
MIT License
10 stars 7 forks source link

Race conditions #10

Closed tushar5526 closed 8 months ago

tushar5526 commented 9 months ago

Race conditions happen when a GHA tries to remove a deployment and another tries to create a new one which leads to GHA failing.

Same happens when push and pull-request both runs on a new PR and we get 2 comments on the PR.

A possible fix is to change the namespacing logic or introduce a lock file to be created before touching the deployments!