From ced634a2872efd6bb202adccaed32a6c84e73297 Mon Sep 17 00:00:00 2001 From: mvdbeek Date: Wed, 16 Oct 2024 16:22:31 +0200 Subject: [PATCH] Fix job search statement building Broke in https://github.com/galaxyproject/galaxy/commit/9a4ccbc58d861c74d11271736fc311834f0073c2. This gets worse the more inputs there are. --- 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 d08554a55651..14605c45759f 100644 --- a/lib/galaxy/managers/jobs.py +++ b/lib/galaxy/managers/jobs.py @@ -576,7 +576,7 @@ def replace_dataset_ids(path, key, value): else: return [] - query = query.where(*data_conditions).group_by(model.Job.id, *used_ids).order_by(model.Job.id.desc()) + query = query.where(*data_conditions).group_by(model.Job.id, *used_ids).order_by(model.Job.id.desc()) for job in self.sa_session.execute(query): # We found a job that is equal in terms of tool_id, user, state and input datasets,