refactor(block-h): knowledge retention job lives with plugin; compliance via contract
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user