Add Env 'CELERY_SENTINEL_PASSWORD' for celery connect redis sentinel. (#21198)

This commit is contained in:
湛露先生
2025-06-27 17:37:11 +08:00
committed by GitHub
parent 38a704743c
commit 28f5c37211
4 changed files with 7 additions and 0 deletions

View File

@@ -21,6 +21,7 @@ def init_app(app: DifyApp) -> Celery:
"master_name": dify_config.CELERY_SENTINEL_MASTER_NAME,
"sentinel_kwargs": {
"socket_timeout": dify_config.CELERY_SENTINEL_SOCKET_TIMEOUT,
"password": dify_config.CELERY_SENTINEL_PASSWORD,
},
}