Azure CLI downloads are taking a long period of time due to time outs
- Dominant language
- Python
- Stars
- 4.6k
- Forks
- 3.5k
- Avg merge
- 3d 2h
- Merged PRs (30d)
- 60
Description
**Related command**
`az pipelines runs artifact download --artifact-name {name} --path c:/temp --run-id {id} --org "{org}" --project {proj} --debug`
**Describe the bug**
We are downloading the artifact fine but sometimes it stalls out and takes ~18 minutes instead of the expected ~3 minutes
Looking at the output, I see
```
cli.azext_devops.dev.common.artifacttool: Downloaded 3,226.0 MB out of 3,302.6 MB (98%).
cli.azext_devops.dev.common.artifacttool: ArtifactHttpRetryMessageHandler.SendAsync: https://vsblobprodscussu5.vsblob.visualstudio.com/A0bd78a1e-8bc2-4825-baee-2e3c7488e4c7/_apis/dedup/urls attempt 1/6 failed with TimeoutException: 'The HTTP request timed out after 00:15:00.'
cli.azext_devops.dev.common.artifacttool: Downloaded 3,226.0 MB out of 3,302.6 MB (98%).
```
The download then continues and successfully completes
So it looks like it's a case of something timing out and then it waiting 15 minutes instead of something more reasonable (in the seconds)
**To Reproduce**
Run above command. It happens with 100% repro for some team members, 0% for others and some get it occasionally. Maybe it's exasperated by network jitter?
**Expected behavior**
Download should complete in a timely manner and timeouts should cause a small delay
**Environment summary**
Install method: Web browsers
CLI Version:
```
{
"azure-cli": "2.32.0",
"azure-cli-core": "2.32.0",
"azure-cli-telemetry": "1.0.6",
"extensions": {
"azure-devops": "0.22.0"
}
}
```
OS Version: Windows10 (Version 10.0.19041 Build 19041)
Shell Type: cmd.exe
Contributor guide
Assessment
This issue has not been assessed yet.