mirror of
https://github.com/clearml/clearml
synced 2025-02-02 01:54:23 +00:00
Support custom configuration in StorageHelper.get()
This commit is contained in:
parent
6330c879f8
commit
32a71d0025
@ -237,6 +237,13 @@ class StorageHelper(object):
|
||||
base_url = cls._resolve_base_url(url)
|
||||
|
||||
instance_key = '%s_%s' % (base_url, threading.current_thread().ident or 0)
|
||||
# noinspection PyBroadException
|
||||
try:
|
||||
configs = kwargs.get("configs")
|
||||
if configs:
|
||||
instance_key += "_{}".format(configs.cache_name)
|
||||
except Exception:
|
||||
pass
|
||||
|
||||
force_create = kwargs.pop('__force_create', False)
|
||||
if (instance_key in cls._helpers) and (not force_create):
|
||||
|
Loading…
Reference in New Issue
Block a user