mirror of
https://github.com/django-q2/django-q2.git
synced 2026-10-02 06:28:11 +08:00
Moves Status to it's own file
This way only qmonitor and qinfo need Curses and you can still run the cluster without it.
This commit is contained in:
@@ -14,7 +14,7 @@ from django_q.humanhash import DEFAULT_WORDLIST
|
||||
from django_q.tasks import fetch, fetch_group, async, result, result_group, count_group, delete_group, queue_size
|
||||
from django_q.models import Task, Success
|
||||
from django_q.conf import Conf, redis_client
|
||||
from django_q.monitor import Stat
|
||||
from django_q.status import Stat
|
||||
from .tasks import multiply
|
||||
|
||||
|
||||
|
||||
@@ -3,7 +3,8 @@ import redis
|
||||
|
||||
from django_q import async
|
||||
from django_q.cluster import Cluster
|
||||
from django_q.monitor import monitor, Stat, ping_redis, info
|
||||
from django_q.monitor import monitor, info
|
||||
from django_q.status import Stat, ping_redis
|
||||
|
||||
|
||||
@pytest.mark.django_db
|
||||
|
||||
Reference in New Issue
Block a user