Browse Source

Only collect topology if peers changed

Nel Nibcord 4 months ago
parent
commit
08912d1b64
1 changed files with 1 additions and 1 deletions
  1. 1 1
      exo/orchestration/node.py

+ 1 - 1
exo/orchestration/node.py

@@ -541,8 +541,8 @@ class Node:
       try:
         did_peers_change = await self.update_peers()
         if DEBUG >= 2: print(f"{did_peers_change=}")
-        await self.collect_topology(set())
         if did_peers_change:
+          await self.collect_topology(set())
           await self.select_best_inference_engine()
       except Exception as e:
         print(f"Error collecting topology: {e}")