deployer
deployer copied to clipboard
Allow to continue parallel deployment if one host failed
Hi !
I use deployer V7 with 10 hosts and parallel deployment is perfect !
However, yesterday I had a problem where one of the servers was down, and I discovered that if a single command fails for one host, ALL the deployment is canceled and every hosts stops at the step failed.
Is there a way to tell deployer to call the fail() callback for this host but continue normally for the others healthy hosts?
Thx for your help! :)
Originally posted by @Tristan-MyAnaPro in https://github.com/deployphp/deployer/discussions/3668
Upvote & Fund
- We're using Polar.sh so you can upvote and help fund this issue.
- We receive the funding once the issue is completed & confirmed by you.
- Thank you in advance for helping prioritize & fund our backlog.
I like that idea but i want to point out that the default behavior should be to cancel the complete deployment process. If one likes to implement a fallback, he should know that he is doing.
Having only 9 out of 10 nodes working but a green pipeline can be worse than a instant red pipeline with error notification :)
Oh yeah, this would be a pretty big breaking change if it becomes the default behavior and it's clearly not what I want ^^
I made this proposition with the idea of it being an opt-in feature which developers have to manually enable / configure to use (a CLI flag or a config).