Verified Commit f48a18b9 authored by Raphaël Bleuse's avatar Raphaël Bleuse
Browse files

Add starting_time attribute to Job

parent e33afc40
......@@ -149,6 +149,7 @@ class Batsim(object):
self.jobs[job.id].allocation = job.allocation
self.jobs[job.id].job_state = Job.State.RUNNING
self.jobs[job.id].starting_time = self.time()
if io_job is not None:
message["data"]["additional_io_job"] = io_job
......@@ -656,6 +657,7 @@ class Job(object):
self.requested_time = walltime
self.requested_resources = res
self.profile = profile
self.starting_time = None # will be set when calling BatsimScheduler.execute_job
self.finish_time = None # will be set on completion by batsim
self.job_state = Job.State.UNKNOWN
self.return_code = None
......
Supports Markdown
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