from .arvcontainer import ArvadosContainer, RunnerContainer
from .arvjob import ArvadosJob, RunnerJob, RunnerTemplate
from .arvtool import ArvadosCommandTool
+from .fsaccess import CollectionFsAccess
from cwltool.process import shortname, UnsupportedRequirement
from arvados.api import OrderedJsonModel
if self.pipeline:
self.api.pipeline_instances().update(uuid=self.pipeline["uuid"],
body={"state": "Failed"}).execute(num_retries=self.num_retries)
+ if runnerjob and self.crunch2:
+ self.api.container_requests().update(uuid=runnerjob.uuid,
+ body={"priority": "0"}).execute(num_retries=self.num_retries)
finally:
self.cond.release()
workflowname = os.path.basename(self.tool.tool["id"])
workflowpath = "/var/lib/cwl/workflow/%s" % workflowname
workflowcollection = workflowmapper.mapper(self.tool.tool["id"])[1]
- workflowcollection = workflowcollection[5:workflowcollection.index('/')]
+ workflowcollection = workflowcollection[workflowcollection.index('/')]
jobpath = "/var/lib/cwl/job/cwl.input.json"
container_image = arv_docker_get_image(self.arvrunner.api,
"stdout": {
"kind": "file",
"path": "/var/spool/cwl/cwl.output.json"
+ },
+ "/var/spool/cwl": {
+ "kind": "collection",
+ "writable": True
}
},
"runtime_constraints": {
"vcpus": 1,
- "ram": 1024*1024*256
+ "ram": 1024*1024*256,
+ "API": True
}
}