-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Single Ctrl+C is not enough to cancel az resource group delete
#596
Comments
@ahmetalpbalkan which shell were you using? When I try this in CMD, it doesn't really matter if I press once or twice, I'm at the mercy of the LRO poller for a while. Is this your experience as well? |
@tjprescott I use zsh via oh-my-zsh on OS X. I hit Ctrl+C once, waited like 10 seconds, nothing happened and I went ahead by hitting Ctrl+C again. It shouldn't matter where you are in the program. Hitting Ctrl+C once is supposed to exit the program, right? |
@ahmetalpbalkan yes. What is happening is the first Ctrl+C is terminating the CLI, but because you initiated a LRO to delete the resource group, the second terminates that thread. I've confirmed it does the behavior you describe in bash as well. (CMD makes you wait even after the second Ctrl+C). Out of curiosity, is the reason you are pressing Ctrl+C because you don't want to wait for the resource group delete operation to finish? You just want to "fire and forget"? |
got it but I don't think any of your users will care about this
exactly. since I mostly do manual management of RGs I just want backend API to continue deleting in the background, so I just keep it around for like 3 seconds. I use |
@mayurid moving this to the backlog. PR #757 has been open which would create a workaround solution for the CLI. However Azure/autorest#1379 addresses this at the autorest level but has not been approved yet. |
@tjprescott: will work with the Autorest guys to get the fix expedited. |
Fixed with msrestazure 0.4.3 so closing issue. |
the process keeps running after I hit Ctrl+C once... It finally quits when I hit it twice:
The text was updated successfully, but these errors were encountered: