Skip to content

Commit 0c66d3e

Browse files
committed
Update scanner.py
1 parent 6638089 commit 0c66d3e

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

stats-backend/api2/scanner.py

-10
Original file line numberDiff line numberDiff line change
@@ -146,16 +146,6 @@ def update_providers_info(node_props):
146146
obj.network = identify_network_by_offer(offerobj)
147147
obj.online = is_online
148148
obj.save()
149-
150-
online_nodes = Node.objects.filter(online=True)
151-
for node in online_nodes:
152-
if not node.node_id in unique_providers:
153-
command = f"yagna net find {node.node_id}"
154-
result = subprocess.run(command, shell=True, capture_output=True, text=True)
155-
is_online = "Exiting..., error details: Request failed" not in result.stderr
156-
node.online = is_online
157-
node.computing_now = False
158-
node.save(update_fields=["online", "computing_now"])
159149
print(f"Done updating {len(unique_providers)} providers")
160150

161151

0 commit comments

Comments
 (0)