diff --git a/clearml/backend_api/utils.py b/clearml/backend_api/utils.py index ab35d473..18e4041d 100644 --- a/clearml/backend_api/utils.py +++ b/clearml/backend_api/utils.py @@ -125,7 +125,7 @@ def get_http_session_with_retry( session.trust_env = False if backoff_max is not None: - Retry.BACKOFF_MAX = backoff_max + Retry.DEFAULT_BACKOFF_MAX = backoff_max retry = Retry( total=total, connect=connect, read=read, redirect=redirect, status=status, diff --git a/clearml/backend_interface/task/models.py b/clearml/backend_interface/task/models.py index 6c19e963..ae6283b2 100644 --- a/clearml/backend_interface/task/models.py +++ b/clearml/backend_interface/task/models.py @@ -35,7 +35,7 @@ class ModelsList(UserList): class TaskModels(UserDict): - _input_models_re = re.compile(pattern=r"((?i)(Using model id: )(\w+)?)", flags=0) + _input_models_re = re.compile(pattern=r"((Using model id: )(\w+)?)", flags=re.IGNORECASE) @property def input(self):