Skip to content

Commit

Permalink
refactor: try no timeout stop grpc server (#6111)
Browse files Browse the repository at this point in the history
Signed-off-by: Joan Fontanals Martinez <[email protected]>
Co-authored-by: Joan Fontanals Martinez <[email protected]>
  • Loading branch information
JoanFM and JoanFM authored Nov 20, 2023
1 parent dbe8a94 commit 5572a3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jina/serve/runtimes/servers/grpc.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ async def shutdown(self):
await super().shutdown()
await self.health_servicer.enter_graceful_shutdown()
await self._request_handler.close() # allow pending requests to be processed
await self.server.stop(1.0)
await self.server.stop(grace=None)
self.logger.debug(f'Server shutdown finished')

async def run_server(self):
Expand Down

0 comments on commit 5572a3f

Please sign in to comment.