Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
dream
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
dream
Commits
674a6307
Commit
674a6307
authored
Nov 22, 2013
by
Georgios Dagkakis
Committed by
Sebastien Robin
Dec 11, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Job updated so that it outputs its completion time in the results. Results of tests also updated
parent
c3f73b55
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
12 deletions
+6
-12
dream/simulation/Job.py
dream/simulation/Job.py
+3
-9
dream/tests/dump/Topology18.json.result
dream/tests/dump/Topology18.json.result
+1
-1
dream/tests/dump/Topology19.json.result
dream/tests/dump/Topology19.json.result
+1
-1
dream/tests/dump/Topology20.json.result
dream/tests/dump/Topology20.json.result
+1
-1
No files found.
dream/simulation/Job.py
View file @
674a6307
...
...
@@ -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
...
...
dream/tests/dump/Topology18.json.result
View file @
674a6307
...
...
@@ -88,4 +88,4 @@
"general": {
"_class": "Dream.Configuration"
}
}
\ No newline at end of file
}
dream/tests/dump/Topology19.json.result
View file @
674a6307
...
...
@@ -132,4 +132,4 @@
"general": {
"_class": "Dream.Configuration"
}
}
\ No newline at end of file
}
dream/tests/dump/Topology20.json.result
View file @
674a6307
...
...
@@ -194,4 +194,4 @@
"general": {
"_class": "Dream.Configuration"
}
}
\ No newline at end of file
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment