mirror of
https://github.com/andwati/dokploy.git
synced 2026-11-12 06:55:19 +00:00
Merge pull request #3810 from jaimehgb/fix/swarm-convergence
fix: set FailureAction=rollback for swarm services default UpdateConfig
This commit is contained in:
@@ -588,9 +588,15 @@ export const generateConfigContainer = (
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
}),
|
}),
|
||||||
...(rollbackConfigSwarm && {
|
...(rollbackConfigSwarm
|
||||||
RollbackConfig: rollbackConfigSwarm,
|
? { RollbackConfig: rollbackConfigSwarm }
|
||||||
}),
|
: {
|
||||||
|
// default rollback config to match update config
|
||||||
|
RollbackConfig: {
|
||||||
|
Parallelism: 1,
|
||||||
|
Order: "start-first",
|
||||||
|
},
|
||||||
|
}),
|
||||||
...(updateConfigSwarm
|
...(updateConfigSwarm
|
||||||
? { UpdateConfig: updateConfigSwarm }
|
? { UpdateConfig: updateConfigSwarm }
|
||||||
: {
|
: {
|
||||||
@@ -598,6 +604,7 @@ export const generateConfigContainer = (
|
|||||||
UpdateConfig: {
|
UpdateConfig: {
|
||||||
Parallelism: 1,
|
Parallelism: 1,
|
||||||
Order: "start-first",
|
Order: "start-first",
|
||||||
|
FailureAction: "rollback",
|
||||||
},
|
},
|
||||||
}),
|
}),
|
||||||
...(stopGracePeriodSwarm !== null &&
|
...(stopGracePeriodSwarm !== null &&
|
||||||
|
|||||||
Reference in New Issue
Block a user