Skip to content

Commit 8437e05

Browse files
committed
ENH: Healthcheck checks more than once
1 parent f461e2f commit 8437e05

1 file changed

Lines changed: 8 additions & 5 deletions

File tree

scripts/check.sh

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,15 @@ if [[ "$HEALTHCHECK" == "true" ]]; then
1515
fi
1616

1717
if [[ "$LISTENER_ADDRESS" != "" ]]; then
18-
wget -qO- "http://localhost:8080/v1/docker-flow-proxy/successfulinitreload"
1918

20-
if [[ $? -ne 0 ]]; then
21-
echo "ERROR: Initial reload was not successful"
22-
exit 1
23-
fi
19+
while true; do
20+
wget -qO- "http://localhost:8080/v1/docker-flow-proxy/successfulinitreload"
21+
22+
if [[ $? -eq 0 ]]; then
23+
exit 0
24+
fi
25+
sleep 0.5
26+
done
2427
fi
2528
fi
2629

0 commit comments

Comments
 (0)