Smallfix w/ redis use

parent 1713870a
......@@ -472,7 +472,10 @@ class Batsim(object):
self.nb_jobs_submitted += 1
# 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:
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
......
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