refactor(block-h): knowledge retention job lives with plugin; compliance via contract

This commit is contained in:
Agent Zero
2026-08-23 12:18:02 +02:00
parent a7699d3598
commit 44511a8fd7
5 changed files with 108 additions and 56 deletions
+4
View File
@@ -143,6 +143,10 @@ class KnowledgePlugin(BasePlugin):
)
logger.info("Registered knowledge agent tools: ask_knowledge, search_knowledge")
def get_job_modules(self) -> list[str]:
"""ARQ job modules — the retention cleanup job lives with this plugin."""
return ["app.plugins.builtins.knowledge.jobs"]
async def on_deactivate(self, db, service_container, event_bus) -> None:
"""Clean up on deactivation."""
from app.core.hooks import unregister_actions_by_owner