Azure / Azure/azure-sdk-for-python

[Cosmos] add a true end to end timeout

Aperta
#42,258 1 commento 0 reazioni 1 assegnatario Rivendicata da @dibahlfi Vedi su GitHub
Client Cosmos
Lingua principale
Python
Stelle
5.6k
Fork
3.4k
Merge medio
2g 2h
PR unite (30g)
213

Descrizione

The Python SDK currently exposes several different timeout and connection retry configurations that users can leverage: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/cosmos/azure-cosmos/docs/TimeoutAndRetriesConfig.md

However, all of these configs only deal with network latency and the end to end of the request over the wire. That is, the timers keeping track only care about the request being sent and the response being returned. Since for some operations, like vector search queries, the client can take additional time in formatting the results before returning them to the user, the end-to-end request from the user's experience might go over the timeout they're expecting.

The ask here is to introduce a `true` end-to-end timeout, that takes into account the additional time a request might spend within the client's flow or multiple requests on the server side and throw an exception if that limit is reached.

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.