diff --git a/dapr/aio/clients/grpc/client.py b/dapr/aio/clients/grpc/client.py index 8d274e3cf..e44c5f69b 100644 --- a/dapr/aio/clients/grpc/client.py +++ b/dapr/aio/clients/grpc/client.py @@ -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: diff --git a/dapr/clients/grpc/client.py b/dapr/clients/grpc/client.py index 252ad73f8..2d65d1755 100644 --- a/dapr/clients/grpc/client.py +++ b/dapr/clients/grpc/client.py @@ -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: diff --git a/dev-requirements.txt b/dev-requirements.txt index 3fb98ece2..158667256 100644 --- a/dev-requirements.txt +++ b/dev-requirements.txt @@ -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 diff --git a/tox.ini b/tox.ini index d6a972ffc..39b40a5d5 100644 --- a/tox.ini +++ b/tox.ini @@ -35,7 +35,7 @@ commands = [testenv:ruff] basepython = python3 usedevelop = False -deps = ruff +deps = ruff==0.2.2 commands = ruff format