fix(worker): update stac_client for pystac-client 0.9.0 compatibility
Build and Push Docker Images / build-and-push (push) Has been cancelled
Details
Build and Push Docker Images / build-and-push (push) Has been cancelled
Details
This commit is contained in:
parent
f97bd14a7f
commit
9b9bd2da5e
|
|
@ -100,16 +100,12 @@ class DEASTACClient:
|
|||
for attempt in range(max_retries):
|
||||
try:
|
||||
return operation(*args, **kwargs)
|
||||
except (
|
||||
pystac_exc.PySTACClientError,
|
||||
pystac_exc.PySTACIOError,
|
||||
Exception,
|
||||
) as e:
|
||||
except Exception as e:
|
||||
# Only retry on network-like errors
|
||||
error_str = str(e).lower()
|
||||
should_retry = any(
|
||||
kw in error_str
|
||||
for kw in ["connection", "timeout", "network", "temporal"]
|
||||
for kw in ["connection", "timeout", "network", "temporal", "retry", "503", "504"]
|
||||
)
|
||||
if not should_retry:
|
||||
raise
|
||||
|
|
|
|||
Loading…
Reference in New Issue