Skip to content

Commit 453afd1

Browse files
author
mingsing
committed
Merge branch 'main' into fix/pubsub_re_sub
2 parents dde4988 + 331f580 commit 453afd1

File tree

30 files changed

+401
-60
lines changed

30 files changed

+401
-60
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ pip3 install dapr-ext-fastapi
5353

5454
```sh
5555
# Install Dapr client sdk
56-
pip3 install dapr-dev
56+
pip3 install dapr
5757

5858
# Install Dapr gRPC AppCallback service extension
5959
pip3 install dapr-ext-grpc-dev

dapr/aio/clients/grpc/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ def __init__(
153153
max_grpc_message_length (int, optional): The maximum grpc send and receive
154154
message length in bytes.
155155
"""
156-
DaprHealth.wait_until_ready()
156+
DaprHealth.wait_for_sidecar()
157157
self.retry_policy = retry_policy or RetryPolicy()
158158

159159
useragent = f'dapr-sdk-python/{__version__}'

dapr/clients/grpc/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ def __init__(
145145
message length in bytes.
146146
retry_policy (RetryPolicy optional): Specifies retry behaviour
147147
"""
148-
DaprHealth.wait_until_ready()
148+
DaprHealth.wait_for_sidecar()
149149
self.retry_policy = retry_policy or RetryPolicy()
150150

151151
useragent = f'dapr-sdk-python/{__version__}'

dapr/clients/grpc/subscription.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ def outgoing_request_iterator():
6565

6666
def reconnect_stream(self):
6767
self.close()
68-
DaprHealth.wait_until_ready()
68+
DaprHealth.wait_for_sidecar()
6969
print('Attempting to reconnect...')
7070
self.start()
7171

dapr/clients/health.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
import urllib.request
1616
import urllib.error
1717
import time
18+
from warnings import warn
1819

1920
from dapr.clients.http.conf import DAPR_API_TOKEN_HEADER, USER_AGENT_HEADER, DAPR_USER_AGENT
2021
from dapr.clients.http.helpers import get_api_url
@@ -24,6 +25,15 @@
2425
class DaprHealth:
2526
@staticmethod
2627
def wait_until_ready():
28+
warn(
29+
'This method is deprecated. Use DaprHealth.wait_for_sidecar instead.',
30+
DeprecationWarning,
31+
stacklevel=2,
32+
)
33+
DaprHealth.wait_for_sidecar()
34+
35+
@staticmethod
36+
def wait_for_sidecar():
2737
health_url = f'{get_api_url()}/healthz/outbound'
2838
headers = {USER_AGENT_HEADER: DAPR_USER_AGENT}
2939
if settings.DAPR_API_TOKEN is not None:

dapr/clients/http/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def __init__(
5151
timeout (int, optional): Timeout in seconds, defaults to 60.
5252
headers_callback (lambda: Dict[str, str]], optional): Generates header for each request.
5353
"""
54-
DaprHealth.wait_until_ready()
54+
DaprHealth.wait_for_sidecar()
5555

5656
self._timeout = aiohttp.ClientTimeout(total=timeout)
5757
self._serializer = message_serializer

dapr/version/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
limitations under the License.
1414
"""
1515

16-
__version__ = '1.15.0.dev'
16+
__version__ = '1.16.1rc1'

dev-requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Flask>=1.1
1515
# needed for auto fix
1616
ruff===0.2.2
1717
# needed for dapr-ext-workflow
18-
durabletask-dapr >= 0.2.0a7
18+
durabletask-dapr >= 0.2.0a9
1919
# needed for .env file loading in examples
2020
python-dotenv>=1.0.0
2121
# needed for enhanced schema generation from function features
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
dapr-ext-fastapi-dev>=1.15.0.dev
1+
dapr-ext-fastapi>=1.16.1rc1
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
dapr-ext-workflow-dev>=1.15.0.dev
1+
dapr-ext-workflow>=1.16.1rc1

0 commit comments

Comments
 (0)