Commit 8aa3ae1b authored by eric pellegrini's avatar eric pellegrini
Browse files

Added traceback and info keys to JobStatus

parent 95bf73db
......@@ -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'])
......
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