From e1c0c089396ea11f6550d272809c4d6149e44a38 Mon Sep 17 00:00:00 2001 From: mvdbeek Date: Wed, 16 Oct 2024 18:33:33 +0200 Subject: [PATCH] Put cached jobs back into queue on handler restart and don't recover job wrapper, which will fail since we don't actually create a job working directory for cached jobs. --- lib/galaxy/jobs/handler.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/galaxy/jobs/handler.py b/lib/galaxy/jobs/handler.py index 0213a797aab4..8f1d2f5f3410 100644 --- a/lib/galaxy/jobs/handler.py +++ b/lib/galaxy/jobs/handler.py @@ -309,6 +309,8 @@ def _check_job_at_startup(self, job): self.job_wrapper(job).fail( "This tool was disabled before the job completed. Please contact your Galaxy administrator." ) + elif job.copied_from_job_id: + self.queue.put((job.id, job.tool_id)) elif job.job_runner_name is not None and job.job_runner_external_id is None: # This could happen during certain revisions of Galaxy where a runner URL was persisted before the job was dispatched to a runner. log.debug(f"({job.id}) Job runner assigned but no external ID recorded, adding to the job handler queue")