Merge pull request #7832 from pcm32/patch-3

Fix failure in resubmitting job more than once
This commit is contained in:
Marius van den Beek
2019-04-29 10:48:50 +02:00
committed by GitHub
+2
View File
@@ -181,6 +181,8 @@ class ShellJobRunner(AsynchronousJobRunner):
# Try to find out the reason for exiting
self.__handle_out_of_memory(ajs, external_job_id)
self.work_queue.put((self.mark_as_failed, ajs))
# Don't add the job to the watched items once it fails, deals with https://github.com/galaxyproject/galaxy/issues/7820
continue
if state == model.Job.states.RUNNING and not ajs.running:
ajs.running = True
ajs.old_state = state