-
Notifications
You must be signed in to change notification settings - Fork 46
Cleaning Previous Run Leftovers (e.g. Containers) #48
Conversation
This is something I've been meaning to tackle. Thanks for jumping in! I have a couple of problems with the current implementation.
Did you run it under the debugger and detach? Thats how this ends up happening for me 99% of the time. Regardless it should be fixed. |
I actually noticed it when I ran the ApplicationHost inside Rider. It doesn't close processes gracefully. |
Yea I don't have a great solution either. Maybe it's time to write a daemon process but lets keep this simple for now.
👍 I'm going to look into making some base classes for IApplicationProcessor as some patterns are shaking out as more scenarios come online. |
@davidfowl This is still WIP, but how do you like my latest commit?
After you're done, I could edit |
@aller are you still around? I'm back 😄 Will get back to this soon. |
This feature is sorely needed and this project has moved development to https://github.com/dotnet/tye. Would you be willing to move this PR here @areller ? |
@davidfowl I tried to move the files and change namespaces but it seems that there are more substantial code changes in the new repo. |
I propose a simple solutions for cleaning leftovers artifacts from previous runs, in the case where the process did not exit gracefully.
Example: When I run the
ApplicationHost
after it did not exit gracefully last time, I run into this errorApart from having cosmetical implications, it could create side effects for the user, since in normal use, his containers restarts every time he launches the application host and their state is deleted.