Commit 798ebc98 authored by MOMMESSIN Clement's avatar MOMMESSIN Clement
Browse files

Add return value for register_job + small comment

The function register_job now returns the Job that was created
parent 4588a2da
......@@ -227,6 +227,7 @@ class Batsim(object):
""" Returns the registered Job """
if subtime is None:
subtime = self.time()
......@@ -249,6 +250,7 @@ class Batsim(object):[id] = Job.from_json_dict(job_dict)[id].job_state = Job.State.IN_SUBMISSON
self.nb_jobs_in_submission = self.nb_jobs_in_submission + 1
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