diff --git a/apps/worker/stac_client.py b/apps/worker/stac_client.py index bbc084d..8682bd3 100644 --- a/apps/worker/stac_client.py +++ b/apps/worker/stac_client.py @@ -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