Merge pull request #3607 from OthmanHaba/canary

fix(postgres): add default StopGracePeriod to prevent WAL corruption
This commit is contained in:
Mauricio Siu
2026-04-04 18:23:07 -06:00
committed by GitHub
@@ -74,8 +74,7 @@ export const buildPostgres = async (postgres: PostgresNested) => {
Image: dockerImage, Image: dockerImage,
Env: envVariables, Env: envVariables,
Mounts: [...volumesMount, ...bindsMount, ...filesMount], Mounts: [...volumesMount, ...bindsMount, ...filesMount],
...(StopGracePeriod !== null && StopGracePeriod: StopGracePeriod ?? 30_000_000_000,
StopGracePeriod !== undefined && { StopGracePeriod }),
...(command && { ...(command && {
Command: command.split(" "), Command: command.split(" "),
}), }),