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:
Ronald van Zon
2017-12-13 14:36:12 +01:00
parent a4086bffd7
commit dd4f02f122
7 changed files with 83 additions and 7 deletions
+2 -2
View File
@@ -10,7 +10,7 @@ import signal
import socket
import ast
from time import sleep
from multiprocessing import Queue, Event, Process, Value, current_process
from multiprocessing import Event, Process, Value, current_process
# external
import arrow
@@ -30,7 +30,7 @@ from django_q.models import Task, Success, Schedule
from django_q.status import Stat, Status
from django_q.brokers import get_broker
from django_q.signals import pre_execute
from django_q.queues import Queue
class Cluster(object):