Commit ea5dfe2d authored by akhuziy's avatar akhuziy
Browse files

bugfix. now only allocated nodes are returned

parent 7e776208
......@@ -52,12 +52,17 @@ def get_aggregator(job_id, type="text"):
aggr.job.requested_cu = jd.get("requested_cu")
aggr.job.num_nodes = jd.get("num_nodes")
allocated_nodes = []
aggr.job.alloc_cu = []
for node_id, cu_count in cud.items():
allocated_nodes.append(node_id)
aggr.job.alloc_cu.append(AllocCUData(node_id, cu_count))
aggr.nodes = []
for node_id in sorted(data["node"]):
if node_id not in allocated_nodes:
continue
noded = data["node"][node_id]
new_node = NodeData()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment