Skip to content

Commit 5b51182

Browse files
committed
Check health of server before querying
Signed-off-by: Kunjan Patel <[email protected]>
1 parent 1af2df4 commit 5b51182

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

examples/dynamic-lora-sidecar/sidecar/sidecar.py

+1
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ def check_health(self) -> bool:
9292
return False
9393

9494
def wait_server_healthy(self) -> bool:
95+
"""Wait for server to be healthy"""
9596
start_time = datetime.datetime.now()
9697
while datetime.datetime.now() - start_time < self.health_check_timeout:
9798
if self.check_health():

0 commit comments

Comments
 (0)