Skip to content
Snippets Groups Projects
Commit 1443c542 authored by Tristan Van Berkom's avatar Tristan Van Berkom
Browse files

_scheduler: Fix dont display a failure for terminated jobs

This fixes a recent regression introduced in c2fc2a5e
parent 76148785
No related tags found
1 merge request!1096_scheduler: Fix dont display a failure for terminated jobs
Pipeline #44350336 passed
......@@ -184,6 +184,16 @@ class Job():
self._terminated = True
# get_terminated()
#
# Check if a job has been terminated.
#
# Returns:
# (bool): True in the main process if Job.terminate() was called.
#
def get_terminated(self):
return self._terminated
# terminate_wait()
#
# Wait for terminated jobs to complete
......
......@@ -305,7 +305,7 @@ class Queue():
self._done_queue.append(element)
# These lists are for bookkeeping purposes for the UI and logging.
if status == JobStatus.SKIPPED:
if status == JobStatus.SKIPPED or job.get_terminated():
self.skipped_elements.append(element)
elif status == JobStatus.OK:
self.processed_elements.append(element)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment