[ARVADOS] updated: 7a3816393dddc19f67838ae495b83d32e90182d4
Git user
git at public.curoverse.com
Tue Oct 25 13:28:41 EDT 2016
Summary of changes:
sdk/cwl/arvados_cwl/arvcontainer.py | 2 +-
sdk/cwl/tests/test_container.py | 1 +
2 files changed, 2 insertions(+), 1 deletion(-)
via 7a3816393dddc19f67838ae495b83d32e90182d4 (commit)
from 48cb427d89232516d0044464eb00efdcef6ba365 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
commit 7a3816393dddc19f67838ae495b83d32e90182d4
Author: radhika <radhika at curoverse.com>
Date: Tue Oct 25 13:27:30 2016 -0400
10231: update arvados-cwl-runner for keep_cache_ram runtime_constrant.
diff --git a/sdk/cwl/arvados_cwl/arvcontainer.py b/sdk/cwl/arvados_cwl/arvcontainer.py
index 56f29c5..ed84347 100644
--- a/sdk/cwl/arvados_cwl/arvcontainer.py
+++ b/sdk/cwl/arvados_cwl/arvcontainer.py
@@ -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:
diff --git a/sdk/cwl/tests/test_container.py b/sdk/cwl/tests/test_container.py
index b549997..3cae251 100644
--- a/sdk/cwl/tests/test_container.py
+++ b/sdk/cwl/tests/test_container.py
@@ -116,6 +116,7 @@ class TestContainer(unittest.TestCase):
'runtime_constraints': {
'vcpus': 3,
'ram': 3145728000,
+ 'keep_cache_ram': 512,
'API': True,
'partition': ['blurb']
}, 'priority': 1,
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list