File tree 5 files changed +10
-7
lines changed
5 files changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -20,8 +20,7 @@ Let's see the example with the redis broker and redis async result:
20
20
``` python
21
21
import asyncio
22
22
23
- from taskiq_redis.redis_broker import ListQueueBroker
24
- from taskiq_redis.redis_backend import RedisAsyncResultBackend
23
+ from taskiq_redis import ListQueueBroker, RedisAsyncResultBackend
25
24
26
25
redis_async_result = RedisAsyncResultBackend(
27
26
redis_url = " redis://localhost:6379" ,
Original file line number Diff line number Diff line change 1
1
"""Package for redis integration."""
2
2
from taskiq_redis .redis_backend import RedisAsyncResultBackend
3
- from taskiq_redis .redis_broker import ListQueueBroker
3
+ from taskiq_redis .redis_broker import ListQueueBroker , PubSubBroker
4
4
5
- __all__ = ["RedisAsyncResultBackend" , "ListQueueBroker" ]
5
+ __all__ = [
6
+ "RedisAsyncResultBackend" ,
7
+ "ListQueueBroker" ,
8
+ "PubSubBroker" ,
9
+ ]
Original file line number Diff line number Diff line change 5
5
import pytest
6
6
from taskiq import TaskiqResult
7
7
8
+ from taskiq_redis import RedisAsyncResultBackend
8
9
from taskiq_redis .exceptions import (
9
10
DuplicateExpireTimeSelectedError ,
10
11
ExpireTimeMustBeMoreThanZeroError ,
11
12
)
12
- from taskiq_redis .redis_backend import RedisAsyncResultBackend
13
13
14
14
_ReturnType = TypeVar ("_ReturnType" )
15
15
Original file line number Diff line number Diff line change 4
4
import pytest
5
5
from taskiq import AsyncBroker , BrokerMessage
6
6
7
- from taskiq_redis . redis_broker import ListQueueBroker , PubSubBroker
7
+ from taskiq_redis import ListQueueBroker , PubSubBroker
8
8
9
9
10
10
async def get_message (broker : AsyncBroker ) -> BrokerMessage : # type: ignore
Original file line number Diff line number Diff line change 3
3
import pytest
4
4
from taskiq import TaskiqResult
5
5
6
- from taskiq_redis . redis_backend import RedisAsyncResultBackend
6
+ from taskiq_redis import RedisAsyncResultBackend
7
7
8
8
9
9
@pytest .mark .anyio
You can’t perform that action at this time.
0 commit comments