dealertrack / celery-redis-sentinel

Redis Sentinel broker and results backend for celery
http://celery-redis-sentinel.readthedocs.org/
Other
41 stars 30 forks source link

support redis password when trying to connect the queue server #3

Open deng-zy opened 8 years ago

blatinier commented 8 years ago

Interested here :) Forking gordon-zhiyong version in our local depot for now.

For information, to use it you must set the CELERY_REDIS_PASSWORD param.

junhe1026 commented 8 years ago

@blatinier hmm, CELERY_REDIS_PASSWORD seems to be deprecated and removed in celery version 4.0.

@miki725 I think there is no need to make extra effort to support celey pasword configuration, cuz we are able to pass password directly to the BROKER_URL. One way that works for me on the basis of @gordon-zhiyong 's effort is as follows:

BROKER_URL = 'redis-sentinel://:{password}@redis-sentinel:26379/12'.format(password=your_redis_sentinel_password)
cloverstd commented 7 years ago

@junhe1026 Hi, I use URL Schema with password for BROKER_URL, but it could not work.

https://github.com/dealertrack/celery-redis-sentinel/blob/master/celery_redis_sentinel/redis_sentinel.py#L208

There are no password params pass to Sentinel.