Skip to content

Commit

Permalink
Merge pull request #558 from blindcrone/topology-on-change
Browse files Browse the repository at this point in the history
Only collect topology if peers changed
  • Loading branch information
blindcrone authored Dec 15, 2024
2 parents 72be5e4 + 470f961 commit cfedcec
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 @@ -542,8 +542,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 cfedcec

Please sign in to comment.