Skip to content

Commit

Permalink
Use retry logic of underlying prefect client properly (#16992)
Browse files Browse the repository at this point in the history
  • Loading branch information
cicdw authored Feb 5, 2025
1 parent 1e16865 commit 6bc8e73
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/prefect/client/orchestration/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ def request(
) -> "Response":
if path_params:
path = path.format(**path_params) # type: ignore
return self._client.request(method, path, params=params, **kwargs)
request = self._client.build_request(method, path, params=params, **kwargs)
return self._client.send(request)


class BaseAsyncClient:
Expand All @@ -48,4 +49,5 @@ async def request(
) -> "Response":
if path_params:
path = path.format(**path_params) # type: ignore
return await self._client.request(method, path, params=params, **kwargs)
request = self._client.build_request(method, path, params=params, **kwargs)
return await self._client.send(request)

0 comments on commit 6bc8e73

Please sign in to comment.