Skip to content

Commit 67f2f08

Browse files
authored
[Cosmos] set startup to false on any refresh (#40203)
* set startup to false on any refresh * Update CHANGELOG.md * Update _global_endpoint_manager_async.py * Update _global_endpoint_manager_async.py
1 parent 657229d commit 67f2f08

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

sdk/cosmos/azure-cosmos/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
#### Breaking Changes
88

99
#### Bugs Fixed
10+
* Fixed too many health checks happening when skipping the recommended client startup. See [PR 40203](https://github.com/Azure/azure-sdk-for-python/pull/40203).
1011

1112
#### Other Changes
1213

sdk/cosmos/azure-cosmos/azure/cosmos/aio/_global_endpoint_manager_async.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@ async def _refresh_endpoint_list_private(self, database_account=None, **kwargs):
135135
else:
136136
# on startup do this in foreground
137137
await self._endpoints_health_check(**kwargs)
138+
self.startup = False
138139

139140
async def _endpoints_health_check(self, **kwargs):
140141
"""Gets the database account for each endpoint.

0 commit comments

Comments
 (0)