Merge pull request #12039 from bgruening/galaxy_memory

[21.01] add GALAXY_MEMORY_MB* to passt hrough
This commit is contained in:
John Chilton
2021-05-24 12:51:09 -04:00
committed by GitHub
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -42,7 +42,7 @@ class ToolInfo:
def __init__(self, container_descriptions=None, requirements=None, requires_galaxy_python_environment=False, env_pass_through=None, guest_ports=None, tool_id=None, tool_version=None, profile=-1):
if env_pass_through is None:
env_pass_through = ["GALAXY_SLOTS"]
env_pass_through = ["GALAXY_SLOTS", "GALAXY_MEMORY_MB", "GALAXY_MEMORY_MB_PER_SLOT"]
if container_descriptions is None:
container_descriptions = []
if requirements is None:
+2 -1
View File
@@ -110,7 +110,8 @@ class ToolSource(metaclass=ABCMeta):
return ["TMPDIR", "TMP", "TEMP"]
def parse_docker_env_pass_through(self):
return ["GALAXY_SLOTS", "HOME", "_GALAXY_JOB_HOME_DIR", "_GALAXY_JOB_TMP_DIR"] + self.parse_tmp_directory_vars()
return ["GALAXY_SLOTS", "GALAXY_MEMORY_MB", "GALAXY_MEMORY_MB_PER_SLOT", "HOME",
"_GALAXY_JOB_HOME_DIR", "_GALAXY_JOB_TMP_DIR"] + self.parse_tmp_directory_vars()
@abstractmethod
def parse_interpreter(self):