Skip to content

Commit

Permalink
fix: only parse ready nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
IgnacioHeredia committed Sep 23, 2024
1 parent dda2ff3 commit 6e3fa32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ai4papi/routers/v1/try_me/nomad.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def create_deployment(

for _, datacenter in stats['datacenters'].items():
for _, node in datacenter['nodes'].items():
if 'tryme' in node['tags']:
if 'tryme' in node['tags'] and node['status'] == 'ready':
for k in keys:
status[k] += node[k]
for r in resources:
Expand Down

0 comments on commit 6e3fa32

Please sign in to comment.