[Frontend][Core] Add shutdown timeout - allowing in-flight requests to finish (#34730)
Signed-off-by: Mark McLoughlin <markmc@redhat.com> Co-authored-by: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -104,8 +104,10 @@ class DPCoordinator:
|
||||
"""Returns tuple of ZMQ input address, output address."""
|
||||
return self.coord_in_address, self.coord_out_address
|
||||
|
||||
def close(self):
|
||||
self._finalizer()
|
||||
def shutdown(self, timeout: float | None = None) -> None:
|
||||
"""Shutdown coordinator process with configurable timeout."""
|
||||
if self._finalizer.detach() is not None:
|
||||
shutdown([self.proc], timeout=timeout)
|
||||
|
||||
|
||||
class EngineState:
|
||||
|
||||
Reference in New Issue
Block a user