[BugFix] Ensure appropriate guards in destructors (#25284)

Signed-off-by: Nick Hill <nhill@redhat.com>
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
This commit is contained in:
Nick Hill
2025-09-20 09:06:34 +08:00
committed by GitHub
co-authored by gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
parent 8945b001db
commit a25ade5d47
4 changed files with 8 additions and 9 deletions
-3
View File
@@ -235,9 +235,6 @@ class ExecutorBase(ABC):
"""Shutdown the executor."""
self.collective_rpc("shutdown")
def __del__(self):
self.shutdown()
async def execute_model_async(
self,
execute_model_req: ExecuteModelRequest) -> List[SamplerOutput]: