feat: no longer enable auto upgrade when marketplace is disabled (#24… (#24101)

This commit is contained in:
Junyan Qin (Chin)
2025-08-18 15:57:33 +08:00
committed by GitHub
parent 5e8fe30035
commit 531e784a92
3 changed files with 12 additions and 3 deletions

View File

@@ -145,7 +145,7 @@ def init_app(app: DifyApp) -> Celery:
minutes=dify_config.QUEUE_MONITOR_INTERVAL if dify_config.QUEUE_MONITOR_INTERVAL else 30
),
}
if dify_config.ENABLE_CHECK_UPGRADABLE_PLUGIN_TASK:
if dify_config.ENABLE_CHECK_UPGRADABLE_PLUGIN_TASK and dify_config.MARKETPLACE_ENABLED:
imports.append("schedule.check_upgradable_plugin_task")
beat_schedule["check_upgradable_plugin_task"] = {
"task": "schedule.check_upgradable_plugin_task.check_upgradable_plugin_task",