From 635ec57bf2702bebbafaa620015d8bd5434e5644 Mon Sep 17 00:00:00 2001 From: mvdbeek Date: Tue, 19 Sep 2023 14:54:45 +0200 Subject: [PATCH] Add missing join condition in job search Fixes https://help.galaxyproject.org/t/i-tried-to-run-a-new-workflow-but-it-stopped-scheduling-at-some-point-seems-like-a-better-error-message-is-in-order/10719 --- lib/galaxy/managers/jobs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/galaxy/managers/jobs.py b/lib/galaxy/managers/jobs.py index 9a0da71b5003..d59daf5fd91e 100644 --- a/lib/galaxy/managers/jobs.py +++ b/lib/galaxy/managers/jobs.py @@ -513,7 +513,7 @@ def replace_dataset_ids(path, key, value): e = aliased(model.HistoryDatasetAssociation) query = query.add_columns(a.dataset_collection_element_id) query = ( - query.join(a) + query.join(a, a.job_id == model.Job.id) .join(b, b.id == a.dataset_collection_element_id) .join( c,