fix: switch plugin auto upgrade cache to redis (#26356)

This commit is contained in:
Junyan Qin (Chin)
2025-09-29 12:57:30 +08:00
committed by GitHub
parent 029d5d36ac
commit cba2b9b2ad
4 changed files with 93 additions and 24 deletions

View File

@@ -145,6 +145,7 @@ def init_app(app: DifyApp) -> Celery:
}
if dify_config.ENABLE_CHECK_UPGRADABLE_PLUGIN_TASK and dify_config.MARKETPLACE_ENABLED:
imports.append("schedule.check_upgradable_plugin_task")
imports.append("tasks.process_tenant_plugin_autoupgrade_check_task")
beat_schedule["check_upgradable_plugin_task"] = {
"task": "schedule.check_upgradable_plugin_task.check_upgradable_plugin_task",
"schedule": crontab(minute="*/15"),