feat: no longer enable auto upgrade when marketplace is disabled (#24097)

This commit is contained in:
Junyan Qin (Chin)
2025-08-18 15:44:11 +08:00
committed by Garfield Dai
parent bd0b7d399f
commit 80b017c94c
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",