Skip to main content

Redis-Sentinel transport for Celery

Project description


Celery broker for Redis Sentinel


As simple as possible:

pip install celery-sentinel


Setup celery broker:



    'sentinels': [('', 26379),
                  ('', 26379),
                  ('', 26379)],
    'service_name': 'master',
    'socket_timeout': 0.1,

Configure celery app:

import os

from celery_sentinel import Celery

# set the default Django settings module for the 'celery' program.
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "config.settings.local")

app = Celery("your-project")

# Using a string here means the worker doesn't have to serialize
# the configuration object to child processes.
# - namespace='CELERY' means all celery-related configuration keys
#   should have a `CELERY_` prefix.
app.config_from_object("django.conf:settings", namespace="CELERY")

# Load task modules from all registered Django app configs.

Then use the celery as usual.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

celery-sentinel-0.0.1.tar.gz (4.2 kB view hashes)

Uploaded source

Built Distribution

celery_sentinel-0.0.1-py3-none-any.whl (4.7 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page