mirror of
https://github.com/django-q2/django-q2.git
synced 2026-10-01 07:18:12 +08:00
adds pluggable brokers
* added redis broker * added django_redis broker * added task acknowledgement
This commit is contained in:
@@ -1,10 +1,9 @@
|
||||
import pytest
|
||||
import redis
|
||||
|
||||
from django_q import async
|
||||
from django_q.cluster import Cluster
|
||||
from django_q.monitor import monitor, info
|
||||
from django_q.status import Stat, ping_redis
|
||||
from django_q.status import Stat
|
||||
|
||||
|
||||
@pytest.mark.django_db
|
||||
@@ -37,10 +36,3 @@ def test_info():
|
||||
|
||||
def do_sync():
|
||||
async('django_q.tests.tasks.countdown', 1, sync=True, save=True)
|
||||
|
||||
|
||||
@pytest.mark.django_db
|
||||
def test_ping_redis():
|
||||
r = redis.StrictRedis(port=6388)
|
||||
with pytest.raises(Exception):
|
||||
ping_redis(r)
|
||||
|
||||
Reference in New Issue
Block a user