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
commit cba2b9b2ad
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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"),