[PD][PushConnector] Record last activity of remotes on the D side (#52245)

Signed-off-by: Sunita Nadampalli <nadampal@amazon.com>
Co-authored-by: Nicolò Lucchesi <nicolo.lucchesi@mistral.ai>
This commit is contained in:
snadampal
2026-09-24 23:15:32 +00:00
committed by GitHub
co-authored by Nicolò Lucchesi
parent f5b40fcdfe
commit 6a86bf626e
2 changed files with 61 additions and 0 deletions
@@ -180,6 +180,12 @@ class NixlPushConnectorWorker(NixlBaseConnectorWorker):
)
assert meta.remote is not None
remote_engine_id = meta.remote.engine_id
# Update last activity from this remote (same as pull), but only for
# an already-connected engine so we never leave an _engine_last_active
# entry without a _remote_agents entry (breaks _cleanup_remote_engine).
if remote_engine_id in self._remote_agents:
self._engine_last_active[remote_engine_id] = time.perf_counter()
logger.debug(
"start_load_kv (push) for request %s from remote engine %s. "
"Num local_block_ids: %s. Num remote_block_ids: %s. ",