cameronmaske / celery-once

Celery Once allows you to prevent multiple execution and queuing of celery tasks.
https://pypi.python.org/pypi/celery_once/
BSD 2-Clause "Simplified" License
662 stars 90 forks source link

Allow to pass options to the redis URL + allow redis socket paths #33

Closed brouberol closed 7 years ago

brouberol commented 8 years ago

The CELERY_ONCE_URL parameter URL can now contain kwargs that will be passed to the StrictRedis constructor[1].

We also allow the define CELERY_ONCE_URL as a UNIX socket path, using the redis+socket URL scheme, as kombu [2] does.

[1] https://redis-py.readthedocs.org/en/latest/index.html#redis.StrictRedis [2] https://kombu.readthedocs.org/en/latest/userguide/connections.html#urls

cameronmaske commented 7 years ago

Release in 1.0.1. Thanks for the PR and sorry for the delay in getting around to it!