Skip to content

Commit a25d7b9

Browse files
committed
chore: update Redis configuration to use unified REDIS_DB setting
1 parent 1e14a00 commit a25d7b9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

apps/maxkb/settings/lib.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
if not os.path.exists(celery_data_dir) or not os.path.isdir(celery_data_dir):
1818
os.makedirs(celery_data_dir)
1919
# Celery using redis as broker
20-
redis_celery_once_db = CONFIG.get("REDIS_CELERY_ONCE_DB", 3)
21-
redis_celery_db = CONFIG.get('REDIS_CELERY_DB', 2)
20+
redis_celery_once_db = CONFIG.get("REDIS_DB")
21+
redis_celery_db = CONFIG.get('REDIS_DB')
2222
CELERY_BROKER_URL_FORMAT = '%(protocol)s://:%(password)s@%(host)s:%(port)s/%(db)s'
2323
if CONFIG.get('REDIS_SENTINEL_MASTER') and CONFIG.get('REDIS_SENTINEL_SENTINELS'):
2424
sentinels_str = CONFIG.get('REDIS_SENTINEL_SENTINELS')

0 commit comments

Comments
 (0)