Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Scientific Software
MDANSE
Commits
8aa3ae1b
Commit
8aa3ae1b
authored
Jul 09, 2015
by
eric pellegrini
Browse files
Added traceback and info keys to JobStatus
parent
95bf73db
Changes
1
Hide whitespace changes
Inline
Side-by-side
MDANSE/Framework/Jobs/JobStatus.py
View file @
8aa3ae1b
...
...
@@ -26,7 +26,9 @@ class JobStatus(Status):
self
.
_state
[
'progress'
]
=
0
self
.
_state
[
'state'
]
=
"running"
self
.
_state
[
'name'
]
=
job
.
name
self
.
_state
[
'traceback'
]
=
''
self
.
_state
[
'temporary_file'
]
=
os
.
path
.
join
(
PLATFORM
.
temporary_files_directory
(),
self
.
_state
[
'name'
])
self
.
_state
[
'info'
]
=
''
self
.
save_status
()
...
...
@@ -45,6 +47,8 @@ class JobStatus(Status):
return
self
.
_state
def
cleanup
(
self
):
return
try
:
os
.
unlink
(
self
.
_state
[
'temporary_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