Skip to content

Commit

Permalink
feat: wait until grpc channel is ready before warmup
Browse files Browse the repository at this point in the history
  • Loading branch information
Girish Chandrashekar committed Jan 12, 2023
1 parent 367a115 commit 34d7d4b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions jina/serve/networking.py
Original file line number Diff line number Diff line change
Expand Up @@ -1125,6 +1125,7 @@ async def warmup(

async def task_wrapper(target_warmup_responses, target, channel):
try:
await channel.channel_ready()
stub = jina_pb2_grpc.JinaInfoRPCStub(channel=channel)
call_result = stub._status(
request=jina_pb2.google_dot_protobuf_dot_empty__pb2.Empty(),
Expand Down

0 comments on commit 34d7d4b

Please sign in to comment.