mirror of
https://github.com/appwrite/appwrite.git
synced 2026-11-18 20:36:03 +00:00
Keep benchmark health check fix
This commit is contained in:
1 file changed
+6
-6
@@ -761,11 +761,11 @@ jobs:
|
||||
run: |
|
||||
docker tag ${{ env.IMAGE }}:before ${{ env.IMAGE }}
|
||||
docker compose up -d --wait --no-build
|
||||
for attempt in $(seq 1 5); do
|
||||
if curl -fsS http://localhost/v1/health; then
|
||||
for attempt in $(seq 1 10); do
|
||||
if curl -fsS http://localhost/v1/health/version; then
|
||||
break
|
||||
fi
|
||||
if [ "$attempt" -eq 5 ]; then
|
||||
if [ "$attempt" -eq 10 ]; then
|
||||
exit 1
|
||||
fi
|
||||
sleep 1
|
||||
@@ -825,11 +825,11 @@ jobs:
|
||||
run: |
|
||||
docker tag ${{ env.IMAGE }}:after ${{ env.IMAGE }}
|
||||
docker compose up -d --wait --no-build
|
||||
for attempt in $(seq 1 5); do
|
||||
if curl -fsS http://localhost/v1/health; then
|
||||
for attempt in $(seq 1 10); do
|
||||
if curl -fsS http://localhost/v1/health/version; then
|
||||
break
|
||||
fi
|
||||
if [ "$attempt" -eq 5 ]; then
|
||||
if [ "$attempt" -eq 10 ]; then
|
||||
exit 1
|
||||
fi
|
||||
sleep 1
|
||||
|
||||
Reference in new issue
Block a user