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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: taskiq-redis
3
- Version: 1.0.1
3
+ Version: 1.0.2
4
4
  Summary: Redis integration for taskiq
5
5
  Home-page: https://github.com/taskiq-python/taskiq-redis
6
6
  Keywords: taskiq,tasks,distributed,async,redis,result_backend
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "taskiq-redis"
3
- version = "1.0.1"
3
+ version = "1.0.2"
4
4
  description = "Redis integration for taskiq"
5
5
  authors = ["taskiq-team <taskiq@norely.com>"]
6
6
  readme = "README.md"
@@ -123,8 +123,12 @@ class ListQueueBroker(BaseRedisBroker):
123
123
  :yields: broker messages.
124
124
  """
125
125
  redis_brpop_data_position = 1
126
- async with Redis(connection_pool=self.connection_pool) as redis_conn:
127
- while True:
128
- yield (await redis_conn.brpop(self.queue_name))[
129
- redis_brpop_data_position
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