I have taken a free trial for Redis and it gave me an endpoint with a password. I haven’t done anything with Redis or celery before so I really don’t have any idea how it works. From the Docs of Celery everyone connects to the local host but how can I connect to this endpoint?
CELERY_BROKER_URL='redis://localhost:6379',
CELERY_RESULT_BACKEND='redis://localhost:6379'
What should I replace this with? Where should I give the password?
My endpoint looks something like this: redis-18394.c252.######.cloud.redislabs.com:18394
, Should I add the password at the end of this after a /
?
2
Answers
You can use channel_redis for this
According to celery’s documentation, the format is
By default, redis has 16 databases so you can use any number from 0-15 for db_number. Use a different db number for broker and result backend.
https://docs.celeryproject.org/en/stable/getting-started/backends-and-brokers/redis.html#configuration