Project

General

Profile

Bug #11226

Updated by Tom Clegg about 7 years ago

The Python SDK instructs httplib2 We used to cache the discovery document in @~/.cache/arvados/discovery@. ~/.cache/arvados/discovery.    However, currently the google discovery document actually lives in /tmp/google-api-python-client-discovery-doc.cache where it is manager by the Google API client code also has its own cache logic, which caches the discovery document in @/tmp/google-api-python-client-discovery-doc.cache@. cache. 

 I don't think we intended for this behavior to change. 

 This is a problem particularly on a multi-user system such as a shell node. The file gets created in a global location like /tmp, then only the original user can update the file. 

 From looking at the google-api-python-client code, the destination is chosen as @os.path.join(tempfile.gettempdir(), FILENAME)@ where @FILENAME = 'google-api-python-client-discovery-doc.cache'@ 

 https://github.com/google/google-api-python-client/blob/dc6c1efea8e6c89afa94df984d9291359cb04797/googleapiclient/discovery_cache/file_cache.py#L87 

Back