[serve] Make workers fault tolerant (#7970)

This commit is contained in:
Edward Oakes
2020-04-12 11:48:08 -05:00
committed by GitHub
parent 98bfcd53bc
commit 2cb9cfb2b6
5 changed files with 171 additions and 50 deletions
+2
View File
@@ -288,6 +288,8 @@ class Router:
backend, buffer_queue, worker_queue, max_batch_size)
async def _do_query(self, backend, worker, req):
# If the worker died, this will be a RayActorError. Just return it and
# let the HTTP proxy handle the retry logic.
result = await worker.handle_request.remote(req)
await self.mark_worker_idle(backend, worker)
return result