Skip to content

Commit

Permalink
Increase read timeout for ocm/versions route
Browse files Browse the repository at this point in the history
Useful as versions lookup for timerange might take a while.
  • Loading branch information
zkdev committed Oct 7, 2024
1 parent ba7c8c1 commit 96d532d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions delivery/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,7 @@ def greatest_component_versions(
version_filter: str | None=None,
start_date: datetime.date=None,
end_date: datetime.date=None,
timeout: tuple[float, float]=(4.0, 121.0),
):
params = {
'component_name': component_name,
Expand All @@ -336,6 +337,7 @@ def greatest_component_versions(
res = self.request(
url=self._routes.greatest_component_versions(),
params=params,
timeout=timeout,
)

res.raise_for_status()
Expand Down

0 comments on commit 96d532d

Please sign in to comment.