fix: qdrant health check

This commit is contained in:
Boris Arzentar 2025-06-05 15:32:59 +02:00
parent 0314d3b63d
commit 3dced5f16e
No known key found for this signature in database
GPG key ID: D5CC274C784807B7

View file

@ -142,11 +142,6 @@ jobs:
QDRANT__LOG_LEVEL: ERROR
QDRANT__SERVICE__API_KEY: qdrant_api_key
QDRANT__SERVICE__ENABLE_TLS: 0
options: >-
--health-cmd "curl 127.0.0.1:6333 || exit 1"
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 6333:6333
@ -163,6 +158,19 @@ jobs:
run: |
poetry install -E qdrant
- name: Wait for Qdrant to be healthy
run: |
for i in {1..10}; do
if curl -f http://127.0.0.1:6333/healthz; then
echo "Qdrant is healthy!"
exit 0
fi
echo "Waiting for Qdrant to be healthy..."
sleep 3
done
echo "Qdrant failed to become healthy in time"
exit 1
- name: Run default Qdrant
env:
ENV: 'dev'