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 ec157f5b authored by MOMMESSIN Clement's avatar MOMMESSIN Clement
Browse files

Correctly count jobs submitted by scheduler

That was causing a return value of 1 in some cases
parent a411a344
......@@ -249,7 +249,11 @@ 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
self.nb_jobs_in_submission = self.nb_jobs_in_submission + 1
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]
def set_resource_state(self, resources, state):
......
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