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
Check Cross-Plugin Imports / check (push) Has been cancelled
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user