Skip to content
Snippets Groups Projects
Commit 28f1d891 authored by John Chilton's avatar John Chilton
Browse files

Properly fail job recovery for locally managed jobs.

Will help ensure these jobs eventually become terminal.
parent 9b68fdf0
No related branches found
No related tags found
No related merge requests found
......@@ -56,6 +56,8 @@ class QueueManager(Manager):
command_line = self._job_directory(job_id).load_metadata(JOB_FILE_COMMAND_LINE, None)
if command_line:
self.work_queue.put((RUN, (job_id, command_line)))
else:
raise Exception("Cannot recover job with id %s" % job_id)
def shutdown(self, timeout=None):
for i in range(len(self.work_threads)):
......
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