Commit ea5dfe2d authored by Azat Khuziyakhmetov's avatar Azat Khuziyakhmetov
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():
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:
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