[ARVADOS] updated: a11581282a43ca5efa3b2fb675164141ec74cf69

Git user git at public.curoverse.com
Thu Jul 28 14:35:07 EDT 2016


Summary of changes:
 sdk/cwl/arvados_cwl/__init__.py | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

       via  a11581282a43ca5efa3b2fb675164141ec74cf69 (commit)
      from  cfa7968b0bf34ce7ba032492e18fe0e1ed77df9e (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 a11581282a43ca5efa3b2fb675164141ec74cf69
Author: radhika <radhika at curoverse.com>
Date:   Thu Jul 28 14:22:09 2016 -0400

    9552: compute-checksum flag

diff --git a/sdk/cwl/arvados_cwl/__init__.py b/sdk/cwl/arvados_cwl/__init__.py
index bb0979a..ce1cc26 100644
--- a/sdk/cwl/arvados_cwl/__init__.py
+++ b/sdk/cwl/arvados_cwl/__init__.py
@@ -35,7 +35,7 @@ class ArvCwlRunner(object):
 
     """
 
-    def __init__(self, api_client, work_api=None, compute_checksum=False):
+    def __init__(self, api_client, work_api=None):
         self.api = api_client
         self.processes = {}
         self.lock = threading.Lock()
@@ -46,7 +46,6 @@ class ArvCwlRunner(object):
         self.num_retries = 4
         self.uuid = None
         self.work_api = work_api
-        self.compute_checksum = compute_checksum
 
         if self.work_api is None:
             # todo: autodetect API to use.
@@ -128,7 +127,7 @@ class ArvCwlRunner(object):
         kwargs["use_container"] = True
         kwargs["tmpdir_prefix"] = "tmp"
         kwargs["on_error"] = "continue"
-        kwargs["compute_checksum"] = self.compute_checksum
+        kwargs["compute_checksum"] = kwargs.get("compute_checksum")
 
         if self.work_api == "containers":
             kwargs["outdir"] = "/var/spool/cwl"
@@ -313,7 +312,7 @@ def main(args, stdout, stderr, api_client=None):
     try:
         if api_client is None:
             api_client=arvados.api('v1', model=OrderedJsonModel())
-        runner = ArvCwlRunner(api_client, work_api=arvargs.work_api, compute_checksum=arvargs.compute_checksum)
+        runner = ArvCwlRunner(api_client, work_api=arvargs.work_api)
     except Exception as e:
         logger.error(e)
         return 1

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


hooks/post-receive
-- 




More information about the arvados-commits mailing list