Azure / Azure/azure-sdk-for-python

Allow for timeout via SDK/API when experiencing long response times

Aperta
#42,939 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Client Cognitive - Computer Vision customer-reported needs-team-attention question Service Attention
Lingua principale
Python
Stelle
5.6k
Fork
3.4k
Merge medio
2g 2h
PR unite (30g)
213

Descrizione

**Is your feature request related to a problem? Please describe.**
When issuing requests to Azure's Computer Vision, occasionally there is a lot of latency in the response.

**Describe the solution you'd like**
In the case of long response times, we would like to use the SDK to issue a timeout for the request.

**Describe alternatives you've considered**
Unsure about other possible solutions regarding this issue

**Additional context**
I have attached graphs of both our VisionAPI Latency and Computer Vision Latency at an instance where the Latency spikes ( To clarify: the graphs shifts as time passes, so the spike being located at the beginning of the graph is not associated with a cold start) 

The following graphs were generated via Datadog for reference

Image

Also, I should note that we are executing the requests as laid out in the following documentaiton:
https://learn.microsoft.com/ja-jp/azure/ai-services/computer-vision/how-to/call-analyze-image-40?pivots=programming-language-python

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Inizia con il flusso delle richieste Azure Computer Vision Python descritto nella documentazione Microsoft Learn collegata e identifica quale punto di ingresso dell’SDK o dell’API gestisce i timeout delle richieste. L’issue è completata quando i chiamanti possono impostare un timeout per le richieste di lunga durata e il comportamento supportato viene verificato rispetto allo scenario di latenza segnalato.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
azure, python
Ambito
api, cloud
Tipo di issue
Funzionalità
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Ferma
Chiarezza
Da chiarire
Idoneità per principianti
30/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.