Commit 028dc584 authored by eric pellegrini's avatar eric pellegrini
Browse files

Bug fix in JobController panel

parent 339fcf65
......@@ -92,7 +92,7 @@ class JobController(threading.Thread):
def run(self):
while not self._stop.is_set():
......@@ -145,7 +145,7 @@ class JobController(threading.Thread):
# Check that the pid of the running job corresponds to an active pid.
running = (info['pid'] in pids)
# If so, check that the corresponding pid actually corresponds to the job by comparing
# the job starting date and the pid creation date.
if running:
......@@ -153,6 +153,9 @@ class JobController(threading.Thread):
procStartingTime = datetime.datetime.strptime(pids[info['pid']],"%d-%m-%Y %H:%M:%S")
running = (jobStartingTime >= procStartingTime)
if not running:
info["state"] = "aborted"
# If the job was aborted, display the traceback on the dialog logger and remove the corresponding job temporary file
if info['state'] == 'aborted':
wx.PostEvent(self._window, JobCrashEvent(info['traceback']))
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