[object Object]

← back to Exo

Only collect topology if peers changed

08912d1b64876e8ea8a762c88a546a541063aaeb · 2024-12-15 02:50:34 -0800 · Nel Nibcord

Files touched

Diff

commit 08912d1b64876e8ea8a762c88a546a541063aaeb
Author: Nel Nibcord <blindcrone@tuta.io>
Date:   Sun Dec 15 02:50:34 2024 -0800

    Only collect topology if peers changed
---
 exo/orchestration/node.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/exo/orchestration/node.py b/exo/orchestration/node.py
index f54744b9..c23ac9ae 100644
--- a/exo/orchestration/node.py
+++ b/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}")

← 06c2e236 rip out stats bloat  ·  back to Exo  ·  add commit to results 9397464f →