[ARVADOS] updated: ed9be4cc10c12051bdb1a65210726ab1d688108c
Git user
git at public.curoverse.com
Wed Dec 7 11:20:33 EST 2016
Summary of changes:
sdk/cwl/arvados_cwl/arvcontainer.py | 17 ++++-------------
sdk/cwl/setup.py | 2 +-
2 files changed, 5 insertions(+), 14 deletions(-)
via ed9be4cc10c12051bdb1a65210726ab1d688108c (commit)
from 24f455da9cb2bf7a3c519912abbc15292a414655 (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 ed9be4cc10c12051bdb1a65210726ab1d688108c
Author: Peter Amstutz <peter.amstutz at curoverse.com>
Date: Wed Dec 7 11:09:52 2016 -0500
10576: Fill in cwl.input.json as a "json" mount instead of creating a new collection.
diff --git a/sdk/cwl/arvados_cwl/arvcontainer.py b/sdk/cwl/arvados_cwl/arvcontainer.py
index cea2b10..eb0afc1 100644
--- a/sdk/cwl/arvados_cwl/arvcontainer.py
+++ b/sdk/cwl/arvados_cwl/arvcontainer.py
@@ -173,15 +173,6 @@ class RunnerContainer(Runner):
workflowmapper = super(RunnerContainer, self).arvados_job_spec(dry_run=dry_run, pull_image=pull_image, **kwargs)
- with arvados.collection.Collection(api_client=self.arvrunner.api,
- keep_client=self.arvrunner.keep_client,
- num_retries=self.arvrunner.num_retries) as jobobj:
- with jobobj.open("cwl.input.json", "w") as f:
- json.dump(self.job_order, f, sort_keys=True, indent=4)
- jobobj.save_new(owner_uuid=self.arvrunner.project_uuid)
-
- jobpath = "/var/lib/cwl/job/cwl.input.json"
-
container_req = {
"owner_uuid": self.arvrunner.project_uuid,
"name": self.name,
@@ -191,9 +182,9 @@ class RunnerContainer(Runner):
"state": "Committed",
"container_image": arvados_jobs_image(self.arvrunner),
"mounts": {
- jobpath: {
- "kind": "collection",
- "portable_data_hash": "%s/cwl.input.json" % jobobj.portable_data_hash()
+ "/var/lib/cwl/cwl.input.json": {
+ "kind": "json",
+ "content": self.job_order
},
"stdout": {
"kind": "file",
@@ -243,7 +234,7 @@ class RunnerContainer(Runner):
else:
command.append("--disable-reuse")
- command.extend([workflowpath, jobpath])
+ command.extend([workflowpath, "/var/lib/cwl/cwl.input.json"])
container_req["command"] = command
diff --git a/sdk/cwl/setup.py b/sdk/cwl/setup.py
index 3ce0d59..069c06d 100644
--- a/sdk/cwl/setup.py
+++ b/sdk/cwl/setup.py
@@ -48,7 +48,7 @@ setup(name='arvados-cwl-runner',
# Note that arvados/build/run-build-packages.sh looks at this
# file to determine what version of cwltool and schema-salad to build.
install_requires=[
- 'cwltool==1.0.20161206212859',
+ 'cwltool==1.0.20161207161158',
'schema-salad==1.21.20161206204028',
'arvados-python-client>=0.1.20160826210445'
],
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list