feat: cleanup free tenants expired data like messages/conversations/workflow_runs/workflow_node_executions (#16490)

This commit is contained in:
Yeuoly
2025-03-21 21:30:35 +08:00
committed by GitHub
parent 3306228840
commit bfc0d606dc
4 changed files with 355 additions and 0 deletions

View File

@@ -4,6 +4,7 @@ from dify_app import DifyApp
def init_app(app: DifyApp):
from commands import (
add_qdrant_index,
clear_free_plan_tenant_expired_logs,
convert_to_agent_apps,
create_tenant,
extract_plugins,
@@ -34,6 +35,7 @@ def init_app(app: DifyApp):
extract_unique_plugins,
install_plugins,
old_metadata_migration,
clear_free_plan_tenant_expired_logs,
]
for cmd in cmds_to_register:
app.cli.add_command(cmd)