adds pluggable brokers

* added redis broker
 * added django_redis broker
 * added task acknowledgement
This commit is contained in:
Ilan Steemers
2015-08-29 18:54:07 +02:00
parent 0de742b417
commit 0740c90148
12 changed files with 247 additions and 163 deletions
+10
View File
@@ -0,0 +1,10 @@
import django_redis
from django_q.brokers import redis
from django_q.conf import Conf
class DjangoRedis(redis.Redis):
@staticmethod
def get_connection():
return django_redis.get_redis_connection(Conf.DJANGO_REDIS)