Skip to content

Commit

Permalink
change it back to collecting topology periodically even if peers dont…
Browse files Browse the repository at this point in the history
… change
  • Loading branch information
AlexCheema committed Dec 17, 2024
1 parent 198308b commit 7ac4004
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion exo/orchestration/node.py
Original file line number Diff line number Diff line change
Expand Up @@ -519,8 +519,8 @@ async def periodic_topology_collection(self, interval: int):
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}")
Expand Down

0 comments on commit 7ac4004

Please sign in to comment.