Skip to content
This repository was archived by the owner on Aug 16, 2021. It is now read-only.

Commit 3f1d5ec

Browse files
committed
Postgres start/stop timeout changed
1 parent 4fdb137 commit 3f1d5ec

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

nancy_run.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1345,8 +1345,8 @@ function stop_postgres {
13451345
return;
13461346
fi
13471347
cnt=$((cnt+1))
1348-
if [[ "${cnt}" -ge "60" ]]; then
1349-
msg "WARNING: could not stop Postgres in 60 seconds. Killing."
1348+
if [[ "${cnt}" -ge "900" ]]; then
1349+
msg "WARNING: could not stop Postgres in 15 minutes. Killing."
13501350
docker_exec bash -c "sudo killall -s 9 postgres || true"
13511351
fi
13521352
# Try normal "fast stop"
@@ -1374,8 +1374,8 @@ function start_postgres {
13741374
return;
13751375
fi
13761376
cnt=$((cnt+1))
1377-
if [[ "${cnt}" -ge "60" ]]; then
1378-
dbg "WARNING: Can't start Postgres in 60 seconds." >&2
1377+
if [[ "${cnt}" -ge "900" ]]; then
1378+
dbg "WARNING: Can't start Postgres in 15 minutes." >&2
13791379
return 12
13801380
fi
13811381
docker_exec bash -c "sudo pg_ctlcluster ${PG_VERSION} main start || true"

0 commit comments

Comments
 (0)