fix(arch-a2): deactivation cleanup - container services, search provider, hook deregistration, notification sync, task state, activation order
Check Cross-Plugin Imports / check (push) Has been cancelled

This commit is contained in:
Agent Zero
2026-08-23 19:24:12 +02:00
parent 73d2e109cd
commit c21634b323
10 changed files with 154 additions and 29 deletions
+7
View File
@@ -709,6 +709,13 @@ class PluginRegistry:
await db.flush()
self._db_status[name] = record
# Re-sync notification types so entries of the deactivated plugin are
# removed from the DB (ARCH-015) — must run AFTER the status update.
try:
await self.sync_notification_types(db)
except Exception:
logger.exception("Failed to sync notification types after deactivating '%s'", name)
# Invalidate Redis cache for this plugin across all tenants
try:
from app.core.redis import get_redis