Skip to content

Commit

Permalink
Fix job search statement building
Browse files Browse the repository at this point in the history
Broke in
9a4ccbc.
This gets worse the more inputs there are.
  • Loading branch information
mvdbeek committed Oct 16, 2024
1 parent cfc31bc commit ced634a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/galaxy/managers/jobs.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit ced634a

Please sign in to comment.