Merge branch 'wtsi/13113-acr-collectioncache-retries' refs #13113
authorPeter Amstutz <pamstutz@veritasgenetics.com>
Fri, 23 Feb 2018 18:28:50 +0000 (13:28 -0500)
committerPeter Amstutz <pamstutz@veritasgenetics.com>
Fri, 23 Feb 2018 18:28:50 +0000 (13:28 -0500)
Arvados-DCO-1.1-Signed-off-by: Peter Amstutz <pamstutz@veritasgenetics.com>

sdk/cwl/arvados_cwl/fsaccess.py

index 69f918ead939c4a56fdbed12449c3cf2fca630ec..0b577b06a2e324dbea743244da955f2661a52bea 100644 (file)
@@ -32,6 +32,7 @@ class CollectionCache(object):
                  min_entries=2):
         self.api_client = api_client
         self.keep_client = keep_client
+        self.num_retries = num_retries
         self.collections = OrderedDict()
         self.lock = threading.Lock()
         self.total = 0
@@ -54,7 +55,8 @@ class CollectionCache(object):
             if pdh not in self.collections:
                 logger.debug("Creating collection reader for %s", pdh)
                 cr = arvados.collection.CollectionReader(pdh, api_client=self.api_client,
-                                                         keep_client=self.keep_client)
+                                                         keep_client=self.keep_client,
+                                                         num_retries=self.num_retries)
                 sz = len(cr.manifest_text()) * 128
                 self.collections[pdh] = (cr, sz)
                 self.total += sz