feat: socket redis
This commit is contained in:
@@ -14,6 +14,7 @@ PG_DATABASE = os.environ.get('PG_DATABASE')
|
||||
# Celery
|
||||
CELERY_BROKER_URL = os.environ.get('CELERY_BROKER_URL')
|
||||
CELERY_RESULT_BACKEND = os.environ.get('CELERY_RESULT_BACKEND')
|
||||
REDIS_URL = os.environ.get('REDIS_URL')
|
||||
|
||||
# Yandex
|
||||
YANDEX_CLIENT_ID = os.environ.get('YANDEX_CLIENT_ID')
|
||||
|
||||
@@ -15,7 +15,7 @@ class RedisConnectionManager:
|
||||
async def get_redis_connection(cls):
|
||||
async with cls._redis_lock:
|
||||
if cls._redis_connection is None:
|
||||
cls._redis_connection = await aioredis.from_url(backend.config.CELERY_BROKER_URL)
|
||||
cls._redis_connection = await aioredis.from_url(backend.config.REDIS_URL)
|
||||
return cls._redis_connection
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user