|
@@ -19,7 +19,7 @@ from celery.utils.functional import dictfilter
|
|
|
from celery.utils.log import get_logger
|
|
|
from celery.utils.time import humanize_seconds
|
|
|
|
|
|
-from . import async, base
|
|
|
+from . import asynchronous, base
|
|
|
|
|
|
try:
|
|
|
from urllib.parse import unquote
|
|
@@ -74,7 +74,7 @@ E_LOST = 'Connection to Redis lost: Retry (%s/%s) %s.'
|
|
|
logger = get_logger(__name__)
|
|
|
|
|
|
|
|
|
-class ResultConsumer(async.BaseResultConsumer):
|
|
|
+class ResultConsumer(asynchronous.BaseResultConsumer):
|
|
|
_pubsub = None
|
|
|
|
|
|
def __init__(self, *args, **kwargs):
|
|
@@ -138,7 +138,7 @@ class ResultConsumer(async.BaseResultConsumer):
|
|
|
self._pubsub.unsubscribe(key)
|
|
|
|
|
|
|
|
|
-class RedisBackend(base.BaseKeyValueStoreBackend, async.AsyncBackendMixin):
|
|
|
+class RedisBackend(base.BaseKeyValueStoreBackend, asynchronous.AsyncBackendMixin):
|
|
|
"""Redis task result store."""
|
|
|
|
|
|
ResultConsumer = ResultConsumer
|