buz 2.15.1__py3-none-any.whl → 2.15.2__py3-none-any.whl

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,5 @@
1
1
  from asyncio import sleep
2
2
  from logging import Logger
3
- import traceback
4
3
  from typing import Optional, Sequence, cast
5
4
 
6
5
  from buz.event import Event
@@ -68,16 +67,10 @@ class KafkaEventAsyncSubscriberExecutor(KafkaEventSubscriberExecutor):
68
67
  headers=self.__header_deserializer.deserialize(kafka_poll_record.headers),
69
68
  ),
70
69
  )
71
-
72
70
  except NotValidKafkaMessageException:
73
71
  self.__logger.error(
74
72
  f'The message "{str(kafka_poll_record.value)}" is not valid, it will be consumed but not processed'
75
73
  )
76
- except Exception as exception:
77
- if self.__on_fail_strategy == KafkaOnFailStrategy.CONSUME_ON_FAIL:
78
- self.__logger.exception(f"Error consuming event: {traceback.format_exc()}")
79
- return
80
- raise exception
81
74
 
82
75
  async def __consumption_callback(self, subscriber: AsyncSubscriber, message: KafkaConsumerRecord[Event]) -> None:
83
76
  await self.__consume_middleware_chain_resolver.resolve(
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: buz
3
- Version: 2.15.1
3
+ Version: 2.15.2
4
4
  Summary: Buz is a set of light, simple and extensible implementations of event, command and query buses.
5
5
  License: MIT
6
6
  Author: Luis Pintado Lozano
@@ -58,7 +58,7 @@ buz/event/infrastructure/buz_kafka/consume_strategy/topic_and_subscription_group
58
58
  buz/event/infrastructure/buz_kafka/exceptions/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
59
59
  buz/event/infrastructure/buz_kafka/exceptions/kafka_event_bus_config_not_valid_exception.py,sha256=VUKZXA2ygjg21P4DADFl_Tace6RwSXia1MRYvJypxbM,135
60
60
  buz/event/infrastructure/buz_kafka/exceptions/retry_exception.py,sha256=Fq9kvI3DpFsGD3x2icmQ1fYIsuKZAFqI3tCibAuEtSQ,441
61
- buz/event/infrastructure/buz_kafka/kafka_event_async_subscriber_executor.py,sha256=OGPuoFGKkaV0pLyBKqv_kHz-xCRFWcqHmJBGOfmJTfc,5845
61
+ buz/event/infrastructure/buz_kafka/kafka_event_async_subscriber_executor.py,sha256=wJ7hxf5k1YWOkUpkUSmMMWrXLTCt94-QHkIRDfM5YuI,5566
62
62
  buz/event/infrastructure/buz_kafka/kafka_event_subscriber_executor.py,sha256=EyG2vsFYErWAyqxdXqSwxx5Zi_y0d6i0h05XavJMnxg,254
63
63
  buz/event/infrastructure/buz_kafka/kafka_event_sync_subscriber_executor.py,sha256=S9ECzWpUQm7YKEtOFuzZMZvRVaiAMyMVfNksJ7Jno9A,5600
64
64
  buz/event/infrastructure/buz_kafka/publish_strategy/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -249,7 +249,7 @@ buz/serializer/message_to_json_bytes_serializer.py,sha256=RGZJ64t4t4Pz2FCASZZCv-
249
249
  buz/wrapper/__init__.py,sha256=GnRdJFcncn-qp0hzDG9dBHLmTJSbHFVjE_yr-MdW_n4,77
250
250
  buz/wrapper/async_to_sync.py,sha256=OfK-vrVUhuN-LLLvekLdMbQYtH0ue5lfbvuasj6ovMI,698
251
251
  buz/wrapper/event_loop.py,sha256=pfBJ1g-8A2a3YgW8Gf9Fg0kkewoh3-wgTy2KIFDyfHk,266
252
- buz-2.15.1.dist-info/LICENSE,sha256=Jytu2S-2SPEgsB0y6BF-_LUxIWY7402fl0JSh36TLZE,1062
253
- buz-2.15.1.dist-info/METADATA,sha256=l97q8FugUX3QM1sBfMPtE0quiE4aIyEMgHkewN6k0NA,1659
254
- buz-2.15.1.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
255
- buz-2.15.1.dist-info/RECORD,,
252
+ buz-2.15.2.dist-info/LICENSE,sha256=Jytu2S-2SPEgsB0y6BF-_LUxIWY7402fl0JSh36TLZE,1062
253
+ buz-2.15.2.dist-info/METADATA,sha256=vJLWjCrVTn6AdIIQ1IJZv3jUlrPg0Kfp4O05HCaggMc,1659
254
+ buz-2.15.2.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
255
+ buz-2.15.2.dist-info/RECORD,,
File without changes
File without changes