Skip to content

Commit

Permalink
Debug VGP handler issue
Browse files Browse the repository at this point in the history
  • Loading branch information
mvdbeek committed Oct 16, 2024
1 parent b56ad8d commit a079de5
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions lib/galaxy/managers/jobs.py
Original file line number Diff line number Diff line change
Expand Up @@ -406,6 +406,16 @@ def replace_dataset_ids(path, key, value):

stmt = stmt.where(*data_conditions).group_by(model.Job.id, *used_ids).order_by(model.Job.id.desc())

from sqlalchemy.dialects import postgresql

try:
log.debug(
"Job search query: %s",
stmt.compile(dialect=postgresql.dialect(), compile_kwargs={"literal_binds": True}),
)
except Exception:
log.exception("Couldn't compile statement")

for job in self.sa_session.execute(stmt):
# We found a job that is equal in terms of tool_id, user, state and input datasets,
# but to be able to verify that the parameters match we need to modify all instances of
Expand Down

0 comments on commit a079de5

Please sign in to comment.