From 8c0489b1844f068804ef45df258c8942e8a3ce2e Mon Sep 17 00:00:00 2001 From: Alex Kerney Date: Wed, 21 Dec 2022 20:45:19 -0500 Subject: [PATCH] v0.4.12-2 Include 408 timeout in error checks --- Changelog.md | 6 ++++++ app/deployments/tasks.py | 6 +++++- app/pyproject.toml | 2 +- 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/Changelog.md b/Changelog.md index 5fbb0b15..a3ecc113 100644 --- a/Changelog.md +++ b/Changelog.md @@ -8,6 +8,12 @@ Changes: Fixes: +## 0.4.12-2 - 12/21/2022 + +Fixes: + +- Missed including 408 backoff check in error handling. + ## 0.4.12 - 12/21/2022 Fixes: diff --git a/app/deployments/tasks.py b/app/deployments/tasks.py index b1419266..419a1ecc 100644 --- a/app/deployments/tasks.py +++ b/app/deployments/tasks.py @@ -390,6 +390,9 @@ def handle_400_errors(timeseries_group, compare_text: str, error: Exception) -> if handle_429_too_many_requests(timeseries_group, compare_text, error): return True + if handle_408_request_timeout(timeseries_group, compare_text, error): + return True + return False @@ -585,7 +588,8 @@ def handle_http_errors(timeseries_group, error: HTTPError) -> bool: logger.error( ( f"Error loading dataset {timeseries_group[0].dataset.name} " - f"with constraint {timeseries_group[0].constraints}: {error}" + f"with constraint {timeseries_group[0].constraints}: {error}. " + "Could not find an existing error defined." ), extra=error_extra(timeseries_group), exc_info=True, diff --git a/app/pyproject.toml b/app/pyproject.toml index 968f2e55..669572d7 100644 --- a/app/pyproject.toml +++ b/app/pyproject.toml @@ -1,7 +1,7 @@ [tool] [tool.poetry] name = "buoy_barn" -version = "0.4.12" +version = "0.4.12-2" description = "NERACOOS lightweight API sitting in front of ERDDAP" authors = ["Alex Kerney "]