Commit 6fbadd36 authored by MERCIER Michael's avatar MERCIER Michael

Add progress property to killed jobs

parent 05317612
......@@ -379,6 +379,14 @@ class Job:
return ListView(result)
def progress(self):
return self._batsim_job.progress
def progress(self, value):
self._batsim_job.progress = value
def free(self):
"""Free the current allocation of this job."""
assert self._batsim_job, "Batsim job is not set => job was not correctly initialised"
......@@ -83,7 +83,8 @@ class BaseBatsimScheduler(BatsimScheduler):
for job in jobs:
jobobj = self._jobmap[]
del self._jobmap[]
jobobj.progress = job.progress
jobobjs.append(jobobj)"The following jobs were killed: ({jobs})",
jobs=jobobjs, type="jobs_killed_received")
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