Azure / Azure/azure-sdk-for-python

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

Open
#42,939 2 comments 0 reactions 0 assignees View on GitHub
Client Cognitive - Computer Vision customer-reported needs-team-attention question Service Attention
Dominant language
Python
Stars
5.6k
Forks
3.4k
Avg merge
1d 21h
Merged PRs (30d)
193

Description

**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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.