mirror of
https://github.com/wassname/ray.git
synced 2026-07-10 23:24:30 +08:00
[Serve] Batching in Worker Replica (#8709)
This commit is contained in:
@@ -232,8 +232,10 @@ class SignalActor:
|
||||
def __init__(self):
|
||||
self.ready_event = asyncio.Event()
|
||||
|
||||
def send(self):
|
||||
def send(self, clear=False):
|
||||
self.ready_event.set()
|
||||
if clear:
|
||||
self.ready_event.clear()
|
||||
|
||||
async def wait(self, should_wait=True):
|
||||
if should_wait:
|
||||
|
||||
Reference in New Issue
Block a user