Commit 674a6307 authored by Georgios Dagkakis's avatar Georgios Dagkakis Committed by Sebastien Robin

Job updated so that it outputs its completion time in the results. Results of tests also updated

parent c3f73b55
......@@ -59,18 +59,12 @@ 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]
completionTime=self.schedule[-1][1]
json['results']['completionTime']=self.schedule[-1][1]
#else input "still in progress"
else:
json['results']['completionTime']="still in progress"
completionTime=None
if completionTime and self.dueDate:
delay=completionTime-self.dueDate
json['results']['delay']=delay
json['results']['completionTime']="still in progress"
json['results']['schedule']=[]
json['results']['schedule']={}
i=0
for record in self.schedule:
json['results']['schedule'].append({}) # dictionary holding time and
......
......@@ -88,4 +88,4 @@
"general": {
"_class": "Dream.Configuration"
}
}
\ No newline at end of file
}
......@@ -132,4 +132,4 @@
"general": {
"_class": "Dream.Configuration"
}
}
\ No newline at end of file
}
......@@ -194,4 +194,4 @@
"general": {
"_class": "Dream.Configuration"
}
}
\ No newline at end of file
}
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