Skip to main content

celery store backend and kombu transport for redis that supports connections via unix sockets

Project description

This package provides a celery result backend and a kombu transport for Redis using unix sockets instead of TCP.

Usage

Add this to your settings:

BROKER_TRANSPORT = 'celery_redis_unixsocket.broker.Transport'
BROKER_HOST = '/path/to/redis.sock'
BROKER_VHOST = 0

# if redis password is configured:
BROKER_PASSWORD = 'foobar'

And if you want to store results:

CELERY_RESULT_BACKEND = 'redisunixsocket'
CELERY_REDIS_HOST = '/path/to/redis.sock'

CELERY_IGNORE_RESULT = False

# if redis password is configured:
CELERY_REDIS_PASSWORD = 'foobar'

import celery_redis_unixsocket

The import celery_redis_unixsocket is important because it registers redisunixsocket as a result backend.

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-redis-unixsocket-0.3.tar.gz (2.4 kB view hashes)

Uploaded Source

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