Skip to content

Conversation

@AnatoliB
Copy link
Contributor

If installing a managed dependencies snapshot fails for any reason, the current code just abandons the snapshot folder, relying on it to be eventually removed by regular purge. As a result, the partially installed snapshot keeps occupying file space, and prevents the next installation attempt from starting soon. There is no easy way to avoid these consequences when the PowerShell worker process is terminated. However, if the worker keeps running and it is aware of the installation attempt failure, it has an opportunity to perform the clean up sooner. This is what this PR achieves.

Copy link
Contributor

@Francisco-Gamino Francisco-Gamino left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One minor comment. Other than that, LGTM.

@AnatoliB AnatoliB merged commit d5e1eef into Azure:dev Jul 30, 2019
@AnatoliB AnatoliB deleted the remove-partially-installed-snapshots-3 branch July 30, 2019 06:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants