mirror of
https://github.com/Dokploy/dokploy.git
synced 2026-06-15 20:25:23 +02: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 && {
|
||||
RollbackConfig: rollbackConfigSwarm,
|
||||
}),
|
||||
...(rollbackConfigSwarm
|
||||
? { RollbackConfig: rollbackConfigSwarm }
|
||||
: {
|
||||
// default rollback config to match update config
|
||||
RollbackConfig: {
|
||||
Parallelism: 1,
|
||||
Order: "start-first",
|
||||
},
|
||||
}),
|
||||
...(updateConfigSwarm
|
||||
? { UpdateConfig: updateConfigSwarm }
|
||||
: {
|
||||
@@ -598,6 +604,7 @@ export const generateConfigContainer = (
|
||||
UpdateConfig: {
|
||||
Parallelism: 1,
|
||||
Order: "start-first",
|
||||
FailureAction: "rollback",
|
||||
},
|
||||
}),
|
||||
...(stopGracePeriodSwarm !== null &&
|
||||
|
||||
Reference in New Issue
Block a user