[object Object]

← back to Exo

only collect topology when peers changed

f8d195eea580c8bfec0b64c179cbadb7727706da · 2024-12-05 21:42:41 +0000 · Alex Cheema

Files touched

Diff

commit f8d195eea580c8bfec0b64c179cbadb7727706da
Author: Alex Cheema <alexcheema123@gmail.com>
Date:   Thu Dec 5 21:42:41 2024 +0000

    only collect topology when peers changed
---
 exo/orchestration/standard_node.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/exo/orchestration/standard_node.py b/exo/orchestration/standard_node.py
index 310f18f6..77794753 100644
--- a/exo/orchestration/standard_node.py
+++ b/exo/orchestration/standard_node.py
@@ -374,8 +374,8 @@ class StandardNode(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}")

← dba72044 handle mutable visited properly  ·  back to Exo  ·  adding diable to chatbox and send if download is in progress 12bb315d →