Skip to content

Commit

Permalink
Added ConnectionResetError(ConnectionError) as its own path
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelThamm committed Nov 12, 2024
1 parent a669f46 commit 36d9e68
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/cosl/coordinated_workers/worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -310,8 +310,10 @@ def check_readiness(self) -> ServiceEndpointStatus:
logger.debug(f"GET {check_endpoint} returned: {raw_out!r}.")
return ServiceEndpointStatus.starting

except (HTTPError, ConnectionResetError) as e:
logger.debug(f"Error getting readiness endpoint: server not up (yet): {e}")
except HTTPError as e:
logger.debug(f"Error getting readiness endpoint, server not up (yet): {e}")
except ConnectionResetError as e:
logger.debug(f"Error getting readiness endpoint, does the specified bucket exist?: {e}")
except Exception as e:
logger.exception(f"Unexpected exception getting readiness endpoint: {e}")

Expand Down

0 comments on commit 36d9e68

Please sign in to comment.