mirror of
https://github.com/django-q2/django-q2.git
synced 2026-10-06 02:18:12 +08:00
Move worker, scheduler, pusher and monitor to separate files (#100)
This commit is contained in:
+2
-1
@@ -763,7 +763,8 @@ class AsyncTask:
|
||||
|
||||
def _sync(pack):
|
||||
"""Simulate a package travelling through the cluster."""
|
||||
from django_q.cluster import monitor, worker
|
||||
from django_q.monitor import monitor
|
||||
from django_q.worker import worker
|
||||
|
||||
task_queue = Queue()
|
||||
result_queue = Queue()
|
||||
|
||||
Reference in New Issue
Block a user