MAJ terminée. Nous sommes passés en version 14.6.2 . Pour consulter les "releases notes" associées c'est ici :

https://about.gitlab.com/releases/2022/01/11/security-release-gitlab-14-6-2-released/
https://about.gitlab.com/releases/2022/01/04/gitlab-14-6-1-released/

Commit e2f613a5 authored by MERCIER Michael's avatar MERCIER Michael
Browse files

[sched] Bebida: Avoid to add storage to free resources

parent a5cb42f5
......@@ -415,9 +415,12 @@ class SchedBebida(BatsimScheduler):
ProcSet.from_str(resources)) != 0]
def onAddResources(self, resources):
self.available_resources = self.available_resources | ProcSet.from_str(resources)
to_add_resources = ProcSet.from_str(resources)
assert len(to_add_resources & ProcSet(*self.bs.storage_resources)) == 0, (
"Resources to be added should not contain storage resources!")
self.available_resources = self.available_resources | to_add_resources
# add the resources
self.free_resources = self.free_resources | ProcSet.from_str(resources)
self.free_resources = self.free_resources | to_add_resources
self.load_balance_jobs()
......
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