Azure / Azure/azure-cli

Support setting timeout for Azure CLI commands

Open
#25,772 4 comments 3 reactions 1 assignee Claimed by @jiasli View on GitHub
act-platform-engineering-squad Azure CLI Team Core feature-request rest
Dominant language
Python
Stars
4.6k
Forks
3.5k
Avg merge
3d 2h
Merged PRs (30d)
60

Description

Extension developer verbatim:

Recently we encountered an issue where the post call made using [`send_raw_request`](https://github.com/Azure/azure-cli/blob/953a006139961b6e4882a39c97a4c8bda1891582/src/azure-cli-core/azure/cli/core/util.py#L873) function got stuck and it didn’t return any response and because of that onboarding was stuck in the same state for 6 days for a partner team. When they killed that job, another instance of the job came up and then onboarding was successful.

We want to know

1. what can be the reasons this function might get stuck
2. if there is any default timeout in this function
3. Can we pass some timeout parameter

Link to our code where we are using this for making the post call - https://github.com/Azure/azure-cli-extensions/blob/cbf3346a7ecb624ad14f086f92b280a5ac927e8b/src/connectedk8s/azext_connectedk8s/_utils.py#L416

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.