We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6638089 commit 0c66d3eCopy full SHA for 0c66d3e
stats-backend/api2/scanner.py
@@ -146,16 +146,6 @@ def update_providers_info(node_props):
146
obj.network = identify_network_by_offer(offerobj)
147
obj.online = is_online
148
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"])
159
print(f"Done updating {len(unique_providers)} providers")
160
161
0 commit comments