Project

General

Profile

Idea #19686

Updated by Peter Amstutz over 1 year ago

The python SDK method arvados.api() should return a ThreadSafeApiCache object instead of the plain API object.    Benefits: 

 * It is threadsafe 
 * It creates a corresponding keep client object, which can be accessed by classes like Collection() that take an api client without having to manage passing an extra keep client object around. 
 * ThreadSafeApiCache uses python thread-local storage, we should be aware of how items in thread-local storage get cleaned up when the thread terminates. 

 This is in response to users running into this issue.

Back