mirror of
https://github.com/wassname/ray.git
synced 2026-08-09 12:20:09 +08:00
[serve] Make workers fault tolerant (#7970)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user