Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
ProfiT-HPC
aggregator
Commits
ea5dfe2d
Commit
ea5dfe2d
authored
Mar 06, 2020
by
Azat Khuziyakhmetov
Browse files
bugfix. now only allocated nodes are returned
parent
7e776208
Changes
1
Hide whitespace changes
Inline
Side-by-side
db/influx/influxdb_wrapper.py
View file @
ea5dfe2d
...
...
@@ -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
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment