Add support for specifying redis url to support unix sockets
This commit is contained in:
parent
788a33ee8a
commit
207abed654
6 changed files with 12 additions and 22 deletions
|
@ -8,12 +8,7 @@ import redis
|
|||
from celerywyrm import settings
|
||||
from bookwyrm.tasks import app as celery
|
||||
|
||||
r = redis.Redis(
|
||||
host=settings.REDIS_BROKER_HOST,
|
||||
port=settings.REDIS_BROKER_PORT,
|
||||
password=settings.REDIS_BROKER_PASSWORD,
|
||||
db=settings.REDIS_BROKER_DB_INDEX,
|
||||
)
|
||||
r = redis.from_url(settings.REDIS_BROKER_URL)
|
||||
|
||||
# pylint: disable= no-self-use
|
||||
@method_decorator(login_required, name="dispatch")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue