Merge pull request #3073 from perinm/fix/stop-grace-period-swarm

fix: apply stop grace period within container spec
This commit is contained in:
Mauricio Siu
2025-11-28 10:42:26 -06:00
committed by GitHub
7 changed files with 18 additions and 16 deletions
+1 -2
View File
@@ -125,6 +125,7 @@ export const mechanizeDockerContainer = async (
Image: image,
Env: envVariables,
Mounts: [...volumesMount, ...bindsMount, ...filesMount],
...(StopGracePeriod && { StopGracePeriod }),
...(command
? {
Command: ["/bin/sh"],
@@ -153,8 +154,6 @@ export const mechanizeDockerContainer = async (
})),
},
UpdateConfig,
...(StopGracePeriod !== undefined &&
StopGracePeriod !== null && { StopGracePeriod }),
};
try {