Skip to content

beniwohli/celery-redis-unixsocket

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

celery-redis-unixsocket

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.

Note

This code has only been tested with Django.

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages