mirror of
https://github.com/clearml/clearml
synced 2025-06-26 18:16:07 +00:00
Update Session API version according to max server reported version
This commit is contained in:
@@ -33,6 +33,7 @@ class ApiServiceProxy(object):
|
||||
|
||||
# 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]
|
||||
Session.api_version = version
|
||||
self.__dict__["__wrapped_version__"] = Session.api_version
|
||||
name = ".v{}.{}".format(
|
||||
version.replace(".", "_"), self.__dict__.get("__wrapped_name__")
|
||||
|
||||
Reference in New Issue
Block a user