Skip to content

Commit 85c409e

Browse files
authored
Merge pull request #3607 from OthmanHaba/canary
fix(postgres): add default StopGracePeriod to prevent WAL corruption
2 parents 745cf9d + 67899c7 commit 85c409e

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

packages/server/src/utils/databases/postgres.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,7 @@ export const buildPostgres = async (postgres: PostgresNested) => {
7474
Image: dockerImage,
7575
Env: envVariables,
7676
Mounts: [...volumesMount, ...bindsMount, ...filesMount],
77-
...(StopGracePeriod !== null &&
78-
StopGracePeriod !== undefined && { StopGracePeriod }),
77+
StopGracePeriod: StopGracePeriod ?? 30_000_000_000,
7978
...(command && {
8079
Command: command.split(" "),
8180
}),

0 commit comments

Comments
 (0)