10231: update arvados-cwl-runner for keep_cache_ram runtime_constrant.
authorradhika <radhika@curoverse.com>
Tue, 25 Oct 2016 17:27:30 +0000 (13:27 -0400)
committerradhika <radhika@curoverse.com>
Tue, 25 Oct 2016 17:27:30 +0000 (13:27 -0400)
sdk/cwl/arvados_cwl/arvcontainer.py
sdk/cwl/tests/test_container.py

index 56f29c5cb1d1bc37db1e135e9e66778633a3047a..ed843477449554612597a1b6d1d6e6d0da4523fb 100644 (file)
@@ -97,7 +97,7 @@ class ArvadosContainer(object):
 
         runtime_req, _ = get_feature(self, "http://arvados.org/cwl#RuntimeConstraints")
         if runtime_req:
-            logger.warn("RuntimeConstraints not yet supported by container API")
+            runtime_constraints["keep_cache_ram"] = runtime_req["keep_cache"]
 
         partition_req, _ = get_feature(self, "http://arvados.org/cwl#PartitionRequirement")
         if partition_req:
index b5499970531008a7474f2ae99fb5de48f1234aa2..3cae2514217519a0836630e376f3507b0354a04f 100644 (file)
@@ -116,6 +116,7 @@ class TestContainer(unittest.TestCase):
                 'runtime_constraints': {
                     'vcpus': 3,
                     'ram': 3145728000,
+                    'keep_cache_ram': 512,
                     'API': True,
                     'partition': ['blurb']
                 }, 'priority': 1,