Add Redis password logging in celery_config.py

This commit is contained in:
Stan Girard 2024-02-20 01:03:43 -08:00
parent 4406f1deb2
commit 42db236e40

View File

@ -33,6 +33,7 @@ if CELERY_BROKER_URL.startswith("sqs"):
celery.conf.task_default_queue = CELERY_BROKER_QUEUE_NAME
elif REDIS_HOST:
logger.info(f"Using Redis as broker: {REDIS_HOST}:{REDIS_PORT}")
logger.info(f"Using password: {REDIS_PASS}")
celery = Celery(
__name__,
# redis://:password@hostname:port/db_number