Skip to content

Commit 7b76bdb

Browse files
committed
chore: enhance health check in workflow with retry mechanism and increased wait time
1 parent 0ba3d14 commit 7b76bdb

File tree

1 file changed

+15
-5
lines changed

1 file changed

+15
-5
lines changed

.github/workflows/scoutflo_voyager.yml

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -80,11 +80,21 @@ jobs:
8080
docker system prune -f
8181
8282
# Wait for services to be ready
83-
sleep 30
84-
85-
# Health check
86-
curl -f http://localhost:3000/api/public/health || exit 1
87-
curl -f http://localhost:3030/api/health || exit 1
83+
sleep 60
84+
85+
# Health check with retry
86+
for i in {1..5}; do
87+
echo "Health check attempt $i/5..."
88+
if curl -f http://localhost:3000/api/public/health && curl -f http://localhost:3030/api/health; then
89+
echo "Health checks passed!"
90+
break
91+
fi
92+
if [ $i -eq 5 ]; then
93+
echo "Health checks failed after 5 attempts"
94+
exit 1
95+
fi
96+
sleep 30
97+
done
8898
8999
echo "Langfuse deployment completed successfully!"
90100
EOF

0 commit comments

Comments
 (0)