[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:
co-authored by
Nicolò Lucchesi
parent
f5b40fcdfe
commit
6a86bf626e
@@ -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. ",
|
||||
|
||||
Reference in New Issue
Block a user