Skip to content

Remove deleted app from memory#2653

Open
petersohn wants to merge 1 commit into
AppDaemon:devfrom
petersohn:fix-unload-bug
Open

Remove deleted app from memory#2653
petersohn wants to merge 1 commit into
AppDaemon:devfrom
petersohn:fix-unload-bug

Conversation

@petersohn

Copy link
Copy Markdown

When an app is removed, completely remove it from memory.

  • Remove from app_config.root. If left here stale, the next config update will restart the deleted app.
  • Remove from objects. This is needed because otherwise we get an AssertError because of the unmatched thread count.

Possible side effect: When restarting an app because of a config update, it's completely unloaded from memory and then recreated, resulting in a slight performance overhead.

Fixes #2508.

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.

Improper cleanup if there are dependencies

1 participant