diff --git a/avatars/api.py b/avatars/api.py index 621878d1..dde3a365 100644 --- a/avatars/api.py +++ b/avatars/api.py @@ -1,5 +1,5 @@ # This file has been generated - DO NOT MODIFY -# API Version : 1.1.0-8143129ddb2381b96eb92a581856bda578d89291 +# API Version : 1.1.0-22c97c51f06dc47e6b3f3cdce39be8961d209c9e import io diff --git a/avatars/api_autogenerated.py b/avatars/api_autogenerated.py index f051d31a..0597f01a 100644 --- a/avatars/api_autogenerated.py +++ b/avatars/api_autogenerated.py @@ -1,5 +1,5 @@ # This file has been generated - DO NOT MODIFY -# API Version : 1.1.0-8143129ddb2381b96eb92a581856bda578d89291 +# API Version : 1.1.0-22c97c51f06dc47e6b3f3cdce39be8961d209c9e import itertools diff --git a/avatars/base_client.py b/avatars/base_client.py index 16b316f0..87fd53d1 100644 --- a/avatars/base_client.py +++ b/avatars/base_client.py @@ -350,7 +350,6 @@ def call_update_func(info: OperationInfo) -> bool: return update_func(info) info = OperationInfo(data=self.data) - last_updated_at = info.last_updated_at what = str(response_cls) if response_cls else "request" what_label = f"for {what} at {self.data.url} to complete" loops = 1 @@ -366,21 +365,11 @@ def call_update_func(info: OperationInfo) -> bool: if stop or not info.in_progress: break - last_updated_duration = ( - info.last_updated_at - last_updated_at - ).total_seconds() - - if last_updated_duration > DEFAULT_TIMEOUT: - raise TimeoutError(f"It took more than {DEFAULT_TIMEOUT}s {what_label}") - else: - last_updated_at = info.last_updated_at - logger.info( - f"waiting {what_label}" - f" (last updated: {info.last_updated_at}" - f", duration {last_updated_duration}" - f", loop {loops}, sleeping {DEFAULT_RETRY_INTERVAL}s)" - ) - time.sleep(DEFAULT_RETRY_INTERVAL) + logger.info( + f"waiting {what_label}" + f"(loop {loops}, sleeping {DEFAULT_RETRY_INTERVAL}s)" + ) + time.sleep(DEFAULT_RETRY_INTERVAL) loops += 1 diff --git a/avatars/client.py b/avatars/client.py index db60dd70..fb694362 100644 --- a/avatars/client.py +++ b/avatars/client.py @@ -1,5 +1,5 @@ # This file has been generated - DO NOT MODIFY -# API Version : 1.1.0-8143129ddb2381b96eb92a581856bda578d89291 +# API Version : 1.1.0-22c97c51f06dc47e6b3f3cdce39be8961d209c9e import sys diff --git a/avatars/models.py b/avatars/models.py index 1fe8e3f6..bc51da4e 100644 --- a/avatars/models.py +++ b/avatars/models.py @@ -1,5 +1,5 @@ # This file has been generated - DO NOT MODIFY -# API Version : 1.1.0-8143129ddb2381b96eb92a581856bda578d89291 +# API Version : 1.1.0-22c97c51f06dc47e6b3f3cdce39be8961d209c9e from __future__ import annotations @@ -15,7 +15,7 @@ # generated by datamodel-codegen: # filename: input.json -# timestamp: 2024-04-12T09:39:05+00:00 +# timestamp: 2024-04-12T11:39:42+00:00 class AnalysisStatus(Enum):