[ARVADOS] updated: b7db50d724c258c89da5b5d7b005de2f04d92653

Git user git at public.curoverse.com
Tue Jun 7 16:43:25 EDT 2016


Summary of changes:
 sdk/cwl/arvados_cwl/__init__.py | 17 +++++++++++------
 1 file changed, 11 insertions(+), 6 deletions(-)

       via  b7db50d724c258c89da5b5d7b005de2f04d92653 (commit)
      from  6d940c5e6940a1dca97989c47e67c33d20a4d050 (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 b7db50d724c258c89da5b5d7b005de2f04d92653
Author: Peter Amstutz <peter.amstutz at curoverse.com>
Date:   Tue Jun 7 16:43:19 2016 -0400

    Bugfix submitting cwl jobs with arvados-cwl-runner refs #9275

diff --git a/sdk/cwl/arvados_cwl/__init__.py b/sdk/cwl/arvados_cwl/__init__.py
index adf9372..371dd4f 100644
--- a/sdk/cwl/arvados_cwl/__init__.py
+++ b/sdk/cwl/arvados_cwl/__init__.py
@@ -406,6 +406,14 @@ class RunnerJob(object):
 
         logger.info("Submitted job %s", response["uuid"])
 
+        if kwargs.get("submit"):
+            self.pipeline = self.arvrunner.api.pipeline_instances().create(
+                body={
+                    "owner_uuid": self.arvrunner.project_uuid,
+                    "name": shortname(self.tool.tool["id"]),
+                    "components": {"cwl-runner": {"job": {"uuid": self.uuid, "state": response["state"]} } },
+                    "state": "RunningOnClient"}).execute(num_retries=self.arvrunner.num_retries)
+
         if response["state"] in ("Complete", "Failed", "Cancelled"):
             self.done(response)
 
@@ -673,16 +681,13 @@ class ArvCwlRunner(object):
         if kwargs.get("submit"):
             runnerjob = RunnerJob(self, tool, job_order, kwargs.get("enable_reuse"))
 
-        components = {}
-        if kwargs.get("submit"):
-            components[os.path.basename(tool.tool["id"])] = {"job": runnerjob}
-
-        if "cwl_runner_job" not in kwargs:
+        if not kwargs.get("submit") and "cwl_runner_job" not in kwargs:
+            # Create pipeline for local run
             self.pipeline = self.api.pipeline_instances().create(
                 body={
                     "owner_uuid": self.project_uuid,
                     "name": shortname(tool.tool["id"]),
-                    "components": components,
+                    "components": {},
                     "state": "RunningOnClient"}).execute(num_retries=self.num_retries)
             logger.info("Pipeline instance %s", self.pipeline["uuid"])
 

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list