[V1] [2/n] Logging and Metrics - OutputProcessor Abstraction (#11973)

Signed-off-by: rshaw@neuralmagic.com <rshaw@neuralmagic.com>
This commit is contained in:
Robert Shaw
2025-01-13 04:54:10 +00:00
committed by GitHub
parent d14e98d924
commit 619ae268c3
8 changed files with 449 additions and 209 deletions
+4 -2
View File
@@ -105,7 +105,8 @@ class InprocClient(EngineCoreClient):
self.engine_core.add_request(request)
def abort_requests(self, request_ids: List[str]) -> None:
self.engine_core.abort_requests(request_ids)
if len(request_ids) > 0:
self.engine_core.abort_requests(request_ids)
def shutdown(self):
self.engine_core.shutdown()
@@ -221,7 +222,8 @@ class SyncMPClient(MPClient):
self._send_input(EngineCoreRequestType.ADD, request)
def abort_requests(self, request_ids: List[str]) -> None:
self._send_input(EngineCoreRequestType.ABORT, request_ids)
if len(request_ids) > 0:
self._send_input(EngineCoreRequestType.ABORT, request_ids)
def profile(self, is_start: bool = True) -> None:
self._send_input(EngineCoreRequestType.PROFILE,