docs(config): update Celery environment variable naming convention
- Replace BROKER_URL and RESULT_BACKEND with REDIS_DB_CELERY_BROKER and REDIS_DB_CELERY_BACKEND in README.md - Replace BROKER_URL and RESULT_BACKEND with REDIS_DB_CELERY_BROKER and REDIS_DB_CELERY_BACKEND in README_CN.md - Update api/env.example with new variable names and add deprecation notice - Add reference to celery-env-bug-report.md documentation explaining why old variable names are avoided - Prevents environment variable hijacking by Celery CLI when using standard naming conventions
This commit is contained in:
@@ -29,10 +29,10 @@ REDIS_DB=
|
||||
REDIS_PASSWORD=password
|
||||
|
||||
#celery
|
||||
BROKER_URL=
|
||||
RESULT_BACKEND=
|
||||
CELERY_BROKER=
|
||||
CELERY_BACKEND=
|
||||
# NOTE: 不要使用 BROKER_URL / RESULT_BACKEND / CELERY_BROKER / CELERY_BACKEND,
|
||||
# 这些名称会被 Celery CLI 劫持,详见 docs/celery-env-bug-report.md
|
||||
REDIS_DB_CELERY_BROKER=
|
||||
REDIS_DB_CELERY_BACKEND=
|
||||
|
||||
# Memory Cache Regeneration Configuration
|
||||
# Interval in hours for regenerating memory insight and user summary cache
|
||||
|
||||
Reference in New Issue
Block a user