mirror of
https://github.com/django-q2/django-q2.git
synced 2026-10-02 09:48:11 +08:00
Add custom SharedCounter / Queue
This will not fix anything related to Django 2.0 but will allow MAC users to run Django-Q allowing tests to be run locally.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
from multiprocessing import Event, Queue, Value
|
||||
from multiprocessing import Event, Value
|
||||
|
||||
import pytest
|
||||
|
||||
@@ -8,6 +8,7 @@ from django_q.conf import Conf
|
||||
from django_q.tasks import async, result, fetch, count_group, result_group, fetch_group, delete_group, delete_cached, \
|
||||
async_iter, Chain, async_chain, Iter, Async
|
||||
from django_q.brokers import get_broker
|
||||
from django_q.queues import Queue
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import sys
|
||||
import threading
|
||||
from multiprocessing import Queue, Event, Value
|
||||
from multiprocessing import Event, Value
|
||||
from time import sleep
|
||||
from django.utils import timezone
|
||||
|
||||
@@ -19,6 +19,7 @@ from django_q.conf import Conf
|
||||
from django_q.status import Stat
|
||||
from django_q.brokers import get_broker
|
||||
from django_q.tests.tasks import multiply
|
||||
from django_q.queues import Queue
|
||||
|
||||
|
||||
class WordClass(object):
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
from datetime import timedelta
|
||||
from multiprocessing import Queue, Event, Value
|
||||
from multiprocessing import Event, Value
|
||||
|
||||
import arrow
|
||||
import pytest
|
||||
@@ -10,6 +10,7 @@ from django_q.brokers import get_broker
|
||||
from django_q.cluster import pusher, worker, monitor, scheduler
|
||||
from django_q.conf import Conf
|
||||
from django_q.tasks import Schedule, fetch, schedule as create_schedule
|
||||
from django_q.queues import Queue
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
|
||||
Reference in New Issue
Block a user