Skip to content

Commit a9ea9cf

Browse files
committed
Fix issues found by test
1 parent 825ce6c commit a9ea9cf

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lib/galaxy/managers/jobs.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -368,6 +368,8 @@ def stop(self, job, message=None):
368368
class JobSearch:
369369
"""Search for jobs using tool inputs or other jobs"""
370370

371+
IGNORED_NON_JOB_PARAMETERS = ("__use_cached_job__", "__workflow_invocation_uuid__", "__when_value__")
372+
371373
def __init__(
372374
self,
373375
sa_session: galaxy_scoped_session,
@@ -559,7 +561,7 @@ def replace_dataset_ids(path, key, value):
559561
continue
560562
elif k == "chromInfo" and "?.len" in v:
561563
continue
562-
elif k == "__when_value__":
564+
elif k in self.IGNORED_NON_JOB_PARAMETERS:
563565
continue
564566
a = aliased(model.JobParameter)
565567
job_parameter_conditions.append(
@@ -646,7 +648,7 @@ def _filter_jobs(
646648
continue
647649
elif k == "chromInfo" and "?.len" in v:
648650
continue
649-
elif k == "__when_value__":
651+
elif k in self.IGNORED_NON_JOB_PARAMETERS:
650652
# TODO: really need to separate this.
651653
continue
652654
value_dump = None if v is None else json.dumps(v, sort_keys=True)

0 commit comments

Comments
 (0)