Mentions légales du service

Skip to content
Snippets Groups Projects
Commit d2c9da86 authored by Jonathan Pastor's avatar Jonathan Pastor
Browse files

pre-sort resources by cpu/core to handle old clusters

parent 9351d304
No related branches found
No related tags found
1 merge request!6WIP: Features/oar gpus
......@@ -1135,6 +1135,7 @@ def extract_clusters_description(clusters, site_name, options, data_hierarchy, s
cluster_resources = site_resources
.select{|r| r["cluster"] == cluster_name}
.select{|r| cluster_nodes.include?(r["host"].split(".")[0])}
.sort_by{|r| [r["cpu"], r["core"]]}
sanity_check_result = sanity_check(cluster_resources, site_resources)
unless sanity_check_result
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment