Une MAJ de sécurité est nécessaire sur notre version actuelle. Elle sera effectuée lundi 02/08 entre 12h30 et 13h. L'interruption de service devrait durer quelques minutes (probablement moins de 5 minutes).

Commit 7c6e68e1 authored by MOMMESSIN Clement's avatar MOMMESSIN Clement
Browse files

Add profile dict to job during registration

parent e5774d08
......@@ -251,14 +251,21 @@ class Batsim(object):
}
}
self._events_to_send.append(msg)
self.jobs[id] = Job.from_json_dict(job_dict)
self.jobs[id].job_state = Job.State.IN_SUBMISSON
job = Job.from_json_dict(job_dict)
job.job_state = Job.State.IN_SUBMISSON
if self.ack_of_dynamic_jobs:
self.nb_jobs_in_submission += 1
else:
self.nb_jobs_submitted += 1
self.nb_jobs_submitted_from_scheduler += 1
return self.jobs[id]
# Keep a pointer of the profile in the job structure
assert job.profile in self.profiles[job.workload]
job.profile_dict = self.profiles[job.workload][job.profile]
self.jobs[id] = job
return job
def set_resource_state(self, resources, state):
""" args:resources: is a ProcSet containing a list of resources.
......
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