Skip to content

Commit

Permalink
chore: add debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
alaeddine-13 committed Jan 12, 2023
1 parent 89e9286 commit efbd7e4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion jina/serve/runtimes/asyncio.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,11 +180,12 @@ def is_ready(ctrl_address: str, timeout: float = 1.0, **kwargs) -> bool:
response = GrpcConnectionPool.send_health_check_sync(
ctrl_address, timeout=timeout
)
print(response)
return (
response.status == health_pb2.HealthCheckResponse.ServingStatus.SERVING
)
except RpcError:
return False
raise

@classmethod
def wait_for_ready_or_shutdown(
Expand Down

0 comments on commit efbd7e4

Please sign in to comment.