Commit 9b16785f authored by akhuziy's avatar akhuziy
Browse files

if no GPUs, then gpu is null in json

parent d98d052b
......@@ -101,6 +101,7 @@ def get_aggregator(job_id, type="text"):
new_node.proc.mem_vms = procd.get("mem_vms")
new_node.proc.cpu_usage = procd.get("cpu_usage")
new_node.gpus = []
if conf.GPU is True:
gpud = data["gpu"].get(node_id, None)
......
......@@ -68,6 +68,8 @@ def format_scheme(agg, sstruc, path="", **ids):
"data": seq_data.seq,
}
if not result: result = None
return result
......
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