taskiq-redis 1.0.1__tar.gz → 1.0.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {taskiq_redis-1.0.1 → taskiq_redis-1.0.2}/PKG-INFO +1 -1
- {taskiq_redis-1.0.1 → taskiq_redis-1.0.2}/pyproject.toml +1 -1
- {taskiq_redis-1.0.1 → taskiq_redis-1.0.2}/taskiq_redis/redis_broker.py +9 -5
- {taskiq_redis-1.0.1 → taskiq_redis-1.0.2}/LICENSE +0 -0
- {taskiq_redis-1.0.1 → taskiq_redis-1.0.2}/README.md +0 -0
- {taskiq_redis-1.0.1 → taskiq_redis-1.0.2}/taskiq_redis/__init__.py +0 -0
- {taskiq_redis-1.0.1 → taskiq_redis-1.0.2}/taskiq_redis/exceptions.py +0 -0
- {taskiq_redis-1.0.1 → taskiq_redis-1.0.2}/taskiq_redis/py.typed +0 -0
- {taskiq_redis-1.0.1 → taskiq_redis-1.0.2}/taskiq_redis/redis_backend.py +0 -0
- {taskiq_redis-1.0.1 → taskiq_redis-1.0.2}/taskiq_redis/redis_cluster_broker.py +0 -0
- {taskiq_redis-1.0.1 → taskiq_redis-1.0.2}/taskiq_redis/redis_sentinel_broker.py +0 -0
- {taskiq_redis-1.0.1 → taskiq_redis-1.0.2}/taskiq_redis/schedule_source.py +0 -0
|
@@ -123,8 +123,12 @@ class ListQueueBroker(BaseRedisBroker):
|
|
|
123
123
|
:yields: broker messages.
|
|
124
124
|
"""
|
|
125
125
|
redis_brpop_data_position = 1
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
126
|
+
while True:
|
|
127
|
+
try:
|
|
128
|
+
async with Redis(connection_pool=self.connection_pool) as redis_conn:
|
|
129
|
+
yield (await redis_conn.brpop(self.queue_name))[
|
|
130
|
+
redis_brpop_data_position
|
|
131
|
+
]
|
|
132
|
+
except ConnectionError as exc:
|
|
133
|
+
logger.warning("Redis connection error: %s", exc)
|
|
134
|
+
continue
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|