expand tgi connect timeout (#424)
Signed-off-by: chensuyue <suyue.chen@intel.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user