Smallfix w/ redis use

parent 1713870a
...@@ -472,8 +472,11 @@ class Batsim(object): ...@@ -472,8 +472,11 @@ class Batsim(object):
self.nb_jobs_submitted += 1 self.nb_jobs_submitted += 1
# Store profile if not already present # Store profile if not already present
if profile is not None and job.profile not in self.profiles[job.workload]: if profile is not None:
self.profiles[job.workload][job.profile] = profile if job.workload not in self.profiles:
self.profiles[job.workload] = {}
if job.profile not in self.profiles[job.workload]:
self.profiles[job.workload][job.profile] = profile
# Keep a pointer in the job structure # Keep a pointer in the job structure
assert job.profile in self.profiles[job.workload] assert job.profile in self.profiles[job.workload]
......
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