Skip to content
This repository has been archived by the owner on Nov 1, 2023. It is now read-only.

handle error condition when creating a container that is being deleted #582

Merged
2 commits merged into from
Feb 22, 2021

Conversation

bmc-msft
Copy link
Contributor

When users try to create a container immediately after deleting it, Azure will fail saying the deletion is in-progress.

catching ResourceExistsError during create handles this error.

@bmc-msft
Copy link
Contributor Author

The exception we get back looks like:

Exception while executing function: Functions.containers Result: Failure
Exception: ResourceExistsError: The specified container is being deleted. Try operation later.
RequestId:5770196c-b01e-0036-0717-079780000000
Time:2021-02-19T23:35:23.2776166Z
ErrorCode:ContainerBeingDeleted
Error:None

@ghost
Copy link

ghost commented Feb 22, 2021

Hello @bmc-msft!

Because this pull request has the auto-merge label, I will be glad to assist with helping to merge this pull request once all check-in policies pass.

p.s. you can customize the way I help with merging this pull request, such as holding this pull request until a specific person approves. Simply @mention me (@msftbot) and give me an instruction to get started! Learn more here.

@ghost ghost merged commit cebb84b into microsoft:main Feb 22, 2021
@bmc-msft bmc-msft deleted the handle-container-create-race branch March 19, 2021 15:41
@ghost ghost locked as resolved and limited conversation to collaborators Apr 18, 2021
This pull request was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants