mirror of
https://github.com/django-q2/django-q2.git
synced 2026-10-02 16:38: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:
+2
-1
@@ -1,5 +1,5 @@
|
||||
"""Provides task functionality."""
|
||||
from multiprocessing import Queue, Value
|
||||
from multiprocessing import Value
|
||||
|
||||
# django
|
||||
from django.db import IntegrityError
|
||||
@@ -14,6 +14,7 @@ from django_q.models import Schedule, Task
|
||||
from django_q.humanhash import uuid
|
||||
from django_q.brokers import get_broker
|
||||
from django_q.signals import pre_enqueue
|
||||
from django_q.queues import Queue
|
||||
|
||||
|
||||
def async(func, *args, **kwargs):
|
||||
|
||||
Reference in New Issue
Block a user