Skip to content

Commit

Permalink
v0.4.12-2
Browse files Browse the repository at this point in the history
Include 408 timeout in error checks
  • Loading branch information
abkfenris committed Dec 22, 2022
1 parent 0f06d16 commit 8c0489b
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
6 changes: 6 additions & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
6 changes: 5 additions & 1 deletion app/deployments/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion app/pyproject.toml
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>"]

Expand Down

0 comments on commit 8c0489b

Please sign in to comment.