mirror of
https://github.com/django-q2/django-q2.git
synced 2026-10-08 18:18:11 +08:00
adds pluggable brokers
* added redis broker * added django_redis broker * added task acknowledgement
This commit is contained in:
@@ -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)
|
||||
Reference in New Issue
Block a user