Skip to content

Commit

Permalink
Merge branch 'main' into retry-timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
elena-kolevska authored Apr 24, 2024
2 parents 4724477 + 5121050 commit 23440ab
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 2 deletions.
6 changes: 6 additions & 0 deletions dapr/aio/clients/grpc/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -1548,6 +1548,12 @@ async def wait(self, timeout_s: float):
Args:
timeout_s (float): timeout in seconds
"""
warn(
'The wait method is deprecated. A health check is now done automatically on client '
'initialization.',
DeprecationWarning,
stacklevel=2,
)

start = time.time()
while True:
Expand Down
6 changes: 6 additions & 0 deletions dapr/clients/grpc/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -1525,6 +1525,12 @@ def wait(self, timeout_s: float):
Args:
timeout_s (float): timeout in seconds
"""
warn(
'The wait method is deprecated. A health check is now done automatically on client '
'initialization.',
DeprecationWarning,
stacklevel=2,
)
start = time.time()
while True:
with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as s:
Expand Down
2 changes: 1 addition & 1 deletion dev-requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ pyOpenSSL>=23.2.0
# needed for type checking
Flask>=1.1
# needed for auto fix
ruff>=0.1.11
ruff===0.2.2
# needed for dapr-ext-workflow
durabletask>=0.1.1a1
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ commands =
[testenv:ruff]
basepython = python3
usedevelop = False
deps = ruff
deps = ruff==0.2.2
commands =
ruff format

Expand Down

0 comments on commit 23440ab

Please sign in to comment.