-
Notifications
You must be signed in to change notification settings - Fork 18
Open
Description
Hi,
As discussed on the matrix, I'm reporting this error:
galaxy.jobs.mapper ERROR 2026-02-26 13:13:20,096 [pN:handler_1,p:3301537,tN:JobHandlerQueue.monitor_thread] Caught unhandled exception while attempting to cache
job destination:
Traceback (most recent call last):
File "/srv/galaxy/server/lib/galaxy/jobs/mapper.py", line 225, in __handle_rule
job_destination = self.__invoke_expand_function(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/srv/galaxy/server/lib/galaxy/jobs/mapper.py", line 141, in __invoke_expand_function
return expand_function(**actual_args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/srv/galaxy/venv/lib/python3.11/site-packages/tpv/rules/gateway.py", line 109, in map_tool_to_destination
return destination_mapper.map_to_destination(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/srv/galaxy/venv/lib/python3.11/site-packages/tpv/core/mapper.py", line 241, in map_to_destination
evaluated_entity = self.match_combine_evaluate_entities(context, tool, user)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/srv/galaxy/venv/lib/python3.11/site-packages/tpv/core/mapper.py", line 204, in match_combine_evaluate_entities
evaluated_entity = combined_entity.evaluate_rules(context)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/srv/galaxy/venv/lib/python3.11/site-packages/tpv/core/entities.py", line 571, in evaluate_rules
if rule.is_matching(context):
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/srv/galaxy/venv/lib/python3.11/site-packages/tpv/core/entities.py", line 522, in is_matching
if self.evaluator.eval_code_block(str(self.if_condition), context):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/srv/galaxy/venv/lib/python3.11/site-packages/tpv/core/loader.py", line 78, in eval_code_block
return eval(eval_block, locals)
^^^^^^^^^^^^^^^^^^^^^^^^
File "<string>", line 1, in <module>
NameError: name 'mem' is not defined
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/srv/galaxy/server/lib/galaxy/jobs/mapper.py", line 268, in __cache_job_destination
self.cached_job_destination = self.__determine_job_destination(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/srv/galaxy/server/lib/galaxy/jobs/mapper.py", line 252, in __determine_job_destination
job_destination = self.__handle_dynamic_job_destination(raw_job_destination)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/srv/galaxy/server/lib/galaxy/jobs/mapper.py", line 215, in __handle_dynamic_job_destination
return self.__handle_rule(expand_function, destination)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/srv/galaxy/server/lib/galaxy/jobs/mapper.py", line 230, in __handle_rule
raise e
File "/srv/galaxy/server/lib/galaxy/jobs/mapper.py", line 219, in __handle_rule
job_destination = self.__invoke_expand_function(rule_function, destination)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/srv/galaxy/server/lib/galaxy/jobs/mapper.py", line 141, in __invoke_expand_function
return expand_function(**actual_args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/srv/galaxy/venv/lib/python3.11/site-packages/tpv/rules/gateway.py", line 109, in map_tool_to_destination
return destination_mapper.map_to_destination(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/srv/galaxy/venv/lib/python3.11/site-packages/tpv/core/mapper.py", line 241, in map_to_destination
evaluated_entity = self.match_combine_evaluate_entities(context, tool, user)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/srv/galaxy/venv/lib/python3.11/site-packages/tpv/core/mapper.py", line 204, in match_combine_evaluate_entities
evaluated_entity = combined_entity.evaluate_rules(context)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/srv/galaxy/venv/lib/python3.11/site-packages/tpv/core/entities.py", line 571, in evaluate_rules
if rule.is_matching(context):
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/srv/galaxy/venv/lib/python3.11/site-packages/tpv/core/entities.py", line 522, in is_matching
if self.evaluator.eval_code_block(str(self.if_condition), context):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/srv/galaxy/venv/lib/python3.11/site-packages/tpv/core/loader.py", line 78, in eval_code_block
return eval(eval_block, locals)
^^^^^^^^^^^^^^^^^^^^^^^^
File "<string>", line 1, in <module>
NameError: name 'mem' is not defined
galaxy.jobs.handler DEBUG 2026-02-26 13:13:20,113 [pN:handler_1,p:3301537,tN:JobHandlerQueue.monitor_thread] Intentionally failing job with message (Encountered an unhandled exception while caching job destination dynamic rule.)
The following example doesn't work, and it would be great if it could:
rules:
if: mem > 180
scheduling:
require:
- highmem
Thank you,
Martin
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels