Commit 0b51a431 authored by Georgios Dagkakis's avatar Georgios Dagkakis Committed by Sebastien Robin

Job output updated so that also the delay is outputted. This is done only if a...

Job output updated so that also the delay is outputted. This is done only if a dueDate was given, and delay=compleationTime-dueDate
parent 674a6307
......@@ -294,4 +294,4 @@
"name": "Exit"
}
}
}
\ No newline at end of file
}
......@@ -59,10 +59,16 @@ class Job(Entity): # inherits from the Entity c
#if the Job has reached an exit, input completion time in the results
if self.schedule[-1][0].type=='Exit':
json['results']['completionTime']=self.schedule[-1][1]
json['results']['completionTime']=self.schedule[-1][1]
completionTime=self.schedule[-1][1]
#else input "still in progress"
else:
json['results']['completionTime']="still in progress"
json['results']['completionTime']="still in progress"
completionTime=None
if completionTime and self.dueDate:
delay=completionTime-self.dueDate
json['results']['delay']=delay
json['results']['schedule']={}
i=0
......
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