Skip to content
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

Don't try to cleanup DCP resources on shtudown #2324

Merged
merged 1 commit into from
Feb 20, 2024

Conversation

danegsta
Copy link
Member

@danegsta danegsta commented Feb 20, 2024

On Mac (and probably Linux), the logic to try and cleanup orchestrator resources on shutdown causes more issues than it tries to solve; the resources aren't fully cleaned up by the time the delete request completes and it leaves several of the resources in a bad state such that the subsequent DCP cleanup logic can't fully remove them either and we only clean everything up after the one minute graceful shutdown timeout expires. This means it takes up to a minute for the child executables to be deleted.

Since DCP already has built in cleanup logic when the AppHost goes away (which is how resources get cleaned up when running in Visual Studio), there's no real reason for the AppHost to duplicate the effort.

Microsoft Reviewers: Open in CodeFlow

@dotnet-issue-labeler dotnet-issue-labeler bot added the area-app-model Issues pertaining to the APIs in Aspire.Hosting, e.g. DistributedApplication label Feb 20, 2024
@danegsta danegsta enabled auto-merge (squash) February 20, 2024 22:07
@danegsta danegsta merged commit 8e94a16 into dotnet:main Feb 20, 2024
8 checks passed
@davidfowl
Copy link
Member

Nice!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-app-model Issues pertaining to the APIs in Aspire.Hosting, e.g. DistributedApplication
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants