Skip to content

Commit 29348a6

Browse files
author
Sidhant Thole
committed
server issues
1 parent 307e974 commit 29348a6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

utils/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ def load_model(model_name,
140140
)
141141
time.sleep(30)
142142
# Check if server started
143-
response = requests.get(f"{infinity_api_url}/health", timeout=2)
143+
response = requests.get(f"{infinity_api_url}/health", timeout=10)
144144
if response.status_code != 200:
145145
raise Exception("Infinity API health check failed after main start attempt")
146146
except Exception as e:
@@ -159,7 +159,7 @@ def load_model(model_name,
159159
)
160160
time.sleep(30)
161161
# Check again if the Infinity API server is running after fallback
162-
response = requests.get(f"{infinity_api_url}/health", timeout=2)
162+
response = requests.get(f"{infinity_api_url}/health", timeout=10)
163163
if response.status_code != 200:
164164
raise Exception("Infinity API health check failed after fallback start attempt")
165165
except Exception as e2:

0 commit comments

Comments
 (0)