expand tgi connect timeout (#424)

Signed-off-by: chensuyue <suyue.chen@intel.com>
This commit is contained in:
chen, suyue
2024-07-18 21:28:48 +08:00
committed by GitHub
parent f732674b1e
commit ee0dcb3d37

View File

@@ -67,9 +67,9 @@ function start_services() {
# Start Docker Containers
docker compose -f docker_compose.yaml up -d
n=0
until [[ "$n" -ge 200 ]]; do
docker logs tgi-service > tgi_service_start.log
if grep -q Connected tgi_service_start.log; then
until [[ "$n" -ge 500 ]]; do
docker logs tgi-service > ${LOG_PATH}/tgi_service_start.log
if grep -q Connected ${LOG_PATH}/tgi_service_start.log; then
break
fi
sleep 1s