mirror of
https://github.com/clearml/clearml
synced 2025-04-26 09:20:21 +00:00
Update Session API version according to max server reported version
This commit is contained in:
parent
519677d987
commit
ab9487c4e0
@ -33,6 +33,7 @@ class ApiServiceProxy(object):
|
|||||||
|
|
||||||
# get the most advanced service version that supports our api
|
# get the most advanced service version that supports our api
|
||||||
version = [str(v) for v in ApiServiceProxy._available_versions if Session.check_min_api_version(v)][-1]
|
version = [str(v) for v in ApiServiceProxy._available_versions if Session.check_min_api_version(v)][-1]
|
||||||
|
Session.api_version = version
|
||||||
self.__dict__["__wrapped_version__"] = Session.api_version
|
self.__dict__["__wrapped_version__"] = Session.api_version
|
||||||
name = ".v{}.{}".format(
|
name = ".v{}.{}".format(
|
||||||
version.replace(".", "_"), self.__dict__.get("__wrapped_name__")
|
version.replace(".", "_"), self.__dict__.get("__wrapped_name__")
|
||||||
|
@ -161,7 +161,7 @@ class IdObjectBase(InterfaceBase):
|
|||||||
try:
|
try:
|
||||||
self._data = self._reload()
|
self._data = self._reload()
|
||||||
except Exception:
|
except Exception:
|
||||||
pass
|
self.log.error("Failed reloading task {}".format(self.id))
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def normalize_id(cls, id):
|
def normalize_id(cls, id):
|
||||||
|
@ -1 +1 @@
|
|||||||
__version__ = '0.16.2rc0'
|
__version__ = '0.16.2rc1'
|
||||||
|
Loading…
Reference in New Issue
Block a user