Closed Mncool closed 1 month ago
https://github.com/Xabaril/AspNetCore.Diagnostics.HealthChecks/blob/2f6a10f89e3c6d97f232f4157a80e3a9e1470dc5/src/HealthChecks.CosmosDb/AzureCosmosDbHealthCheck.cs#L34C13-L35C1
_cosmosClient.ReadAccountAsync() doesn't pass the cancellation token to the method, thus it's not able to break on token cancellation.
Closing as I did not understand the cosmos nuget package before creating ticket.
Cosmos nuget has a 3 time retry policy with different requesttimeouts.
https://github.com/Xabaril/AspNetCore.Diagnostics.HealthChecks/blob/2f6a10f89e3c6d97f232f4157a80e3a9e1470dc5/src/HealthChecks.CosmosDb/AzureCosmosDbHealthCheck.cs#L34C13-L35C1
_cosmosClient.ReadAccountAsync() doesn't pass the cancellation token to the method, thus it's not able to break on token cancellation.