@ -9,7 +9,6 @@ import pytest
|
|||||||
from django.conf import settings
|
from django.conf import settings
|
||||||
from django.contrib.contenttypes.models import ContentType
|
from django.contrib.contenttypes.models import ContentType
|
||||||
from django.test.runner import DiscoverRunner
|
from django.test.runner import DiscoverRunner
|
||||||
from django.test.testcases import apps
|
|
||||||
from structlog.stdlib import get_logger
|
from structlog.stdlib import get_logger
|
||||||
|
|
||||||
from authentik.events.context_processors.asn import ASN_CONTEXT_PROCESSOR
|
from authentik.events.context_processors.asn import ASN_CONTEXT_PROCESSOR
|
||||||
|
@ -7,8 +7,8 @@ from time import sleep
|
|||||||
from typing import Any
|
from typing import Any
|
||||||
|
|
||||||
import pglock
|
import pglock
|
||||||
from django.utils.timezone import now
|
|
||||||
from django.conf import settings
|
from django.conf import settings
|
||||||
|
from django.utils.timezone import now
|
||||||
from dramatiq.broker import Broker
|
from dramatiq.broker import Broker
|
||||||
from dramatiq.common import current_millis
|
from dramatiq.common import current_millis
|
||||||
from dramatiq.message import Message
|
from dramatiq.message import Message
|
||||||
@ -23,7 +23,6 @@ from authentik.tasks.models import Task, TaskStatus, WorkerStatus
|
|||||||
from authentik.tenants.models import Tenant
|
from authentik.tenants.models import Tenant
|
||||||
from authentik.tenants.utils import get_current_tenant
|
from authentik.tenants.utils import get_current_tenant
|
||||||
|
|
||||||
|
|
||||||
LOGGER = get_logger()
|
LOGGER = get_logger()
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
from queue import PriorityQueue
|
from queue import PriorityQueue
|
||||||
|
|
||||||
|
import dramatiq
|
||||||
from django.utils.module_loading import import_string
|
from django.utils.module_loading import import_string
|
||||||
from django_dramatiq_postgres.conf import Conf
|
from django_dramatiq_postgres.conf import Conf
|
||||||
import dramatiq
|
|
||||||
from dramatiq.broker import Broker, MessageProxy, get_broker
|
from dramatiq.broker import Broker, MessageProxy, get_broker
|
||||||
from dramatiq.middleware.retries import Retries
|
from dramatiq.middleware.retries import Retries
|
||||||
from dramatiq.results.middleware import Results
|
from dramatiq.results.middleware import Results
|
||||||
|
Reference in New Issue
Block a user