Commit 8950a371 authored by Olivier Auguste Richard's avatar Olivier Auguste Richard

Merge branch 'redis'

parents 1713870a e087583e
......@@ -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
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment