[Core] Record Event Driven dispatch queue high water
Signed-off-by: Sy03 <1370724210@qq.com>
This commit is contained in:
1 parent
521ef843c6
commit
b1e10b0235
4 files changed
+32
No files matched your search
@@ -1278,6 +1278,7 @@ class Orchestrator:
|
||||
await asyncio.sleep(0.001)
|
||||
continue
|
||||
await ready_q.put(("llm", stage_id, replica_id, raw_outputs))
|
||||
self._orch_monitor.set_dispatch_queue_size(ready_q.qsize())
|
||||
except asyncio.CancelledError:
|
||||
raise
|
||||
except BaseException as e: # noqa: BLE001 - routed to the dispatcher
|
||||
@@ -1296,6 +1297,7 @@ class Orchestrator:
|
||||
if output is None:
|
||||
continue
|
||||
await ready_q.put(("diffusion", stage_id, replica_id, output))
|
||||
self._orch_monitor.set_dispatch_queue_size(ready_q.qsize())
|
||||
got = True
|
||||
await asyncio.sleep(0 if got else 0.001)
|
||||
except asyncio.CancelledError:
|
||||
|
||||
Reference in new issue
Block a user