mirror of
https://github.com/django-q2/django-q2.git
synced 2026-10-02 08:38:11 +08:00
* added redis broker * added django_redis broker * added task acknowledgement
10 lines
232 B
Python
10 lines
232 B
Python
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) |