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:
Ilan Steemers
2015-08-26 13:11:58 +02:00
parent 3e92fddcdd
commit 439c8a2f77
6 changed files with 126 additions and 122 deletions
+1 -1
View File
@@ -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
+2 -1
View File
@@ -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