Project

General

Profile

Actions

Idea #19686

closed

arvados.api() should return ThreadSafeApiCache

Added by Peter Amstutz over 1 year ago. Updated over 1 year ago.

Status:
Resolved
Priority:
Normal
Assigned To:
Category:
SDKs
Target version:
Story points:
-
Release relationship:
Auto

Description

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.


Subtasks 1 (0 open1 closed)

Task #19802: Review 19686-threadsafe-api-defaultResolvedBrett Smith11/29/2022Actions
Actions

Also available in: Atom PDF