[ARVADOS] updated: 99032bf3525a2ac2c645fd1995d6181386d5682a
git at public.curoverse.com
git at public.curoverse.com
Mon Jan 11 09:37:59 EST 2016
Summary of changes:
services/fuse/arvados_fuse/fusedir.py | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
via 99032bf3525a2ac2c645fd1995d6181386d5682a (commit)
from 0d7d39c66102e6987f586ec815ea635b202600c4 (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 99032bf3525a2ac2c645fd1995d6181386d5682a
Author: radhika <radhika at curoverse.com>
Date: Mon Jan 11 09:37:10 2016 -0500
6833: get blobSignatureTtl from discovery document and use it to set the poll_time.
diff --git a/services/fuse/arvados_fuse/fusedir.py b/services/fuse/arvados_fuse/fusedir.py
index 9c69200..00efab7 100644
--- a/services/fuse/arvados_fuse/fusedir.py
+++ b/services/fuse/arvados_fuse/fusedir.py
@@ -328,7 +328,11 @@ class CollectionDirectory(CollectionDirectoryBase):
self.collection_record_file = None
self.collection_record = None
self.poll = True
- self.poll_time = 60 * 60
+ try:
+ self.poll_time = (api._rootDesc.get('blobSignatureTtl', 60*60*2)/2)
+ except:
+ _logger.debug("Error getting blobSignatureTtl from discovery document: %s", sys.exc_info()[0])
+ self.poll_time = 60*60
if isinstance(collection_record, dict):
self.collection_locator = collection_record['uuid']
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list