This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
This module adds Redis Sentinel backend support to Celery. | |
Current version (4.0.2) of Celery supports Redis sentinel only as broker but | |
not as result backend. | |
To use it in Django:: | |
import register_celery_alias | |
register_celery_alias('redis-sentinel') | |
app = Celery('my_app') | |
app.config_from_object('django.conf:settings', namespace='CELERY') |