Merge branch '15497-reuse-fix'
authorLucas Di Pentima <ldipentima@veritasgenetics.com>
Thu, 24 Oct 2019 20:51:05 +0000 (17:51 -0300)
committerLucas Di Pentima <ldipentima@veritasgenetics.com>
Thu, 24 Oct 2019 20:51:05 +0000 (17:51 -0300)
Closes #15497

sdk/cwl/arvados_cwl/__init__.py
sdk/cwl/arvados_cwl/arvcontainer.py
sdk/cwl/tests/test_submit.py

index ccbce3ed3eaee5b05d7cf55f879cacfc0c87e2fb..3dd04040ab5d728b5eac21bab601225135ce810e 100644 (file)
@@ -36,7 +36,7 @@ from .perf import Perf
 from ._version import __version__
 from .executor import ArvCwlExecutor
 
-# These arn't used directly in this file but
+# These aren't used directly in this file but
 # other code expects to import them from here
 from .arvcontainer import ArvadosContainer
 from .arvtool import ArvadosCommandTool
index aa3388d00bc9964eb8eb845f2210ac6eee6510de..52ab2ca4bb5be9e3bca421349eea8bd2ffa28129 100644 (file)
@@ -425,7 +425,7 @@ class RunnerContainer(Runner):
                 "ram": 1024*1024 * (math.ceil(self.submit_runner_ram) + math.ceil(self.collection_cache_size)),
                 "API": True
             },
-            "use_existing": self.enable_reuse,
+            "use_existing": False, # Never reuse the runner container - see #15497.
             "properties": {}
         }
 
index d6ef665fb8fb3b89325ef022697c2f74cda05a0f..927e43ad76c1fe1e547fd91dc026282726c82a1c 100644 (file)
@@ -314,7 +314,7 @@ def stubs(func):
                 'vcpus': 1,
                 'ram': (1024+256)*1024*1024
             },
-            'use_existing': True,
+            'use_existing': False,
             'properties': {},
             'secret_mounts': {}
         }
@@ -690,7 +690,7 @@ class TestSubmit(unittest.TestCase):
                 'vcpus': 1,
                 'ram': 1342177280
             },
-            'use_existing': True,
+            'use_existing': False,
             'properties': {},
             'secret_mounts': {}
         }
@@ -785,7 +785,7 @@ class TestSubmit(unittest.TestCase):
                 'vcpus': 1,
                 'ram': 1342177280
             },
-            'use_existing': True,
+            'use_existing': False,
             'properties': {
                 "template_uuid": "962eh-7fd4e-gkbzl62qqtfig37"
             },
@@ -1180,7 +1180,7 @@ class TestSubmit(unittest.TestCase):
                 }
             },
             "state": "Committed",
-            "use_existing": True
+            "use_existing": False
         }
 
         stubs.api.container_requests().create.assert_called_with(