Merge branch 'master' into 10078-dashboard-perf
[arvados.git] / sdk / cwl / arvados_cwl / arvcontainer.py
index 413435db2392e38aa22ba0d5222fef333080dbde..aaae7d9f66ce9d72a2dcade588f58f0e5f6894e9 100644 (file)
@@ -90,6 +90,14 @@ class ArvadosContainer(object):
             runtime_constraints["vcpus"] = resources.get("cores", 1)
             runtime_constraints["ram"] = resources.get("ram") * 2**20
 
+        api_req, _ = get_feature(self, "http://arvados.org/cwl#APIRequirement")
+        if api_req:
+            runtime_constraints["API"] = True
+
+        runtime_req, _ = get_feature(self, "http://arvados.org/cwl#RuntimeConstraints")
+        if runtime_req:
+            logger.warn("RuntimeConstraints not yet supported by container API")
+
         container_request["mounts"] = mounts
         container_request["runtime_constraints"] = runtime_constraints