[Bugfix] Fix CPU memory leak related to not cleaning up old remotes data (#44424)

Signed-off-by: NickLucche <nlucches@redhat.com>
This commit is contained in:
Nicolò Lucchesi
2026-06-11 07:54:52 -07:00
committed by GitHub
parent 5edf7ff489
commit 750aab5b8e
4 changed files with 192 additions and 8 deletions
@@ -481,6 +481,11 @@ class TransferTopology:
) -> EngineTransferInfo:
return self._engines[(remote_engine_id, remote_pp_rank)]
def unregister_remote_engine(self, remote_engine_id: EngineId) -> None:
# Remove all pp_rank entries for the remote engine.
for key in [k for k in self._engines if k[0] == remote_engine_id]:
del self._engines[key]
# ============================================================
# Layout properties
# ============================================================