Skip to content

ZeitOnline/celery_redis_sync

Repository files navigation

celery_redis_sync

Synchronous Redis result store backend.

This fixes the issue that the redis publish/subscribe channels are currently not removed properly by the default (asynchronous) redis backend, see celery/celery#3812. (Our "solution" is to never create any channels in the first place.)

Usage

Make sure the celery_redis_sync module is importable, and then simply specify a redis+sync:// or rediss+sync:// URL in your celery configuration result_backend setting instead of the built-in redis:// URL scheme.

Run tests

Using tox and py.test. Maybe install tox (e.g. via pip install tox) and then simply run tox.

For the integration tests you need to have the redis binary installed (tests start their own server).