jararaca 0.2.37a2__py3-none-any.whl → 0.2.37a4__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.

Potentially problematic release.


This version of jararaca might be problematic. Click here for more details.

@@ -2,7 +2,7 @@ import asyncio
2
2
  import inspect
3
3
  import logging
4
4
  import signal
5
- from contextlib import asynccontextmanager
5
+ from contextlib import asynccontextmanager, suppress
6
6
  from dataclasses import dataclass
7
7
  from typing import Any, AsyncContextManager, AsyncGenerator, Type, get_origin
8
8
 
@@ -133,7 +133,7 @@ class AioPikaMicroserviceConsumer:
133
133
  routing_key=routing_key,
134
134
  message_handler=handler,
135
135
  ),
136
- no_ack=not handler.spec.auto_ack,
136
+ no_ack=handler.spec.auto_ack,
137
137
  )
138
138
 
139
139
  print(f"Consuming {queue_name}")
@@ -281,7 +281,8 @@ class MessageHandlerCallback:
281
281
  ):
282
282
  await handler(builded_message)
283
283
  if not incoming_message_spec.auto_ack:
284
- await aio_pika_message.ack()
284
+ with suppress(aio_pika.MessageProcessError):
285
+ await aio_pika_message.ack()
285
286
  except BaseException as base_exc:
286
287
  if incoming_message_spec.exception_handler is not None:
287
288
  try:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: jararaca
3
- Version: 0.2.37a2
3
+ Version: 0.2.37a4
4
4
  Summary: A simple and fast API framework for Python
5
5
  Home-page: https://github.com/LuscasLeo/jararaca
6
6
  Author: Lucas S
@@ -1,6 +1,6 @@
1
1
  LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
2
2
  README.md,sha256=mte30I-ZEJJp-Oax-OganNgl6G9GaCZPL6JVFAvZGz4,7034
3
- pyproject.toml,sha256=xCjUzQi0mShasOwdzKVckx_dVU8_KEjlL1HX_H0w1FQ,1839
3
+ pyproject.toml,sha256=VQ3oZ1L_hGxppCsYRO-DUpt3PNA5B3uj5SfIUTzOPkY,1839
4
4
  jararaca/__init__.py,sha256=fFxUTZpaYonRdcwq-9MEZC9hmW6dg_A2aQnceZjFB-w,14858
5
5
  jararaca/__main__.py,sha256=-O3vsB5lHdqNFjUtoELDF81IYFtR-DSiiFMzRaiSsv4,67
6
6
  jararaca/cli.py,sha256=JKk4xrRbtX2fM8yYw794lbxvJFH73bWw3GGIvrpAkeE,5706
@@ -18,7 +18,7 @@ jararaca/messagebus/interceptors/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRk
18
18
  jararaca/messagebus/interceptors/aiopika_publisher_interceptor.py,sha256=rqAX644-VHarg6kPPsXGTmxYd79PpJXiJ1N1gIooJTo,2470
19
19
  jararaca/messagebus/publisher.py,sha256=5ay9Znwybqt981OOykdWkFisSvGiTeTpPXDFLMnaiqg,1109
20
20
  jararaca/messagebus/types.py,sha256=iYLyLxWqOHkDadxyMqQPWy3itLNQfvD6oQe8jcq9nzo,887
21
- jararaca/messagebus/worker.py,sha256=88TwbJSRgDcJ3vMGJeKxHEriqiiLBJ0nBPSCgZuUeW8,13534
21
+ jararaca/messagebus/worker.py,sha256=hKACTyrIMHcuaySpmI3UhDCja6va1gGkFRoZJ7kYfoA,13613
22
22
  jararaca/microservice.py,sha256=1TvDKVMMREH27Ly8eTEheMmSfro4_Az_JKM_NdDvrgc,6636
23
23
  jararaca/observability/decorators.py,sha256=XffBinFXdiNkY6eo8_1nkr_GapM0RUGBg0aicBIelag,2220
24
24
  jararaca/observability/interceptor.py,sha256=GHkuGKFWftN7MDjvYeGFGEPnuJETNhtxRK6yuPrCrpU,1462
@@ -59,8 +59,8 @@ jararaca/tools/app_config/decorators.py,sha256=-ckkMZ1dswOmECdo1rFrZ15UAku--txaN
59
59
  jararaca/tools/app_config/interceptor.py,sha256=nfFZiS80hrbnL7-XEYrwmp2rwaVYBqxvqu3Y-6o_ov4,2575
60
60
  jararaca/tools/metadata.py,sha256=7nlCDYgItNybentPSSCc2MLqN7IpBd0VyQzfjfQycVI,1402
61
61
  jararaca/tools/typescript/interface_parser.py,sha256=l-QyPVntATcbL4JYm48xq2gNWfV1y2iArvOuIueFi8w,28829
62
- jararaca-0.2.37a2.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
63
- jararaca-0.2.37a2.dist-info/METADATA,sha256=Hne8ubMrs1cc9FpmIkp27105GYBzzx4aar87TT71d8A,8554
64
- jararaca-0.2.37a2.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
65
- jararaca-0.2.37a2.dist-info/entry_points.txt,sha256=WIh3aIvz8LwUJZIDfs4EeH3VoFyCGEk7cWJurW38q0I,45
66
- jararaca-0.2.37a2.dist-info/RECORD,,
62
+ jararaca-0.2.37a4.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
63
+ jararaca-0.2.37a4.dist-info/METADATA,sha256=2brRldiWobvitKB8ItDbrjQ7-TBUuc6e4ENw5pMVtXI,8554
64
+ jararaca-0.2.37a4.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
65
+ jararaca-0.2.37a4.dist-info/entry_points.txt,sha256=WIh3aIvz8LwUJZIDfs4EeH3VoFyCGEk7cWJurW38q0I,45
66
+ jararaca-0.2.37a4.dist-info/RECORD,,
pyproject.toml CHANGED
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "jararaca"
3
- version = "0.2.37a2"
3
+ version = "0.2.37a4"
4
4
  description = "A simple and fast API framework for Python"
5
5
  authors = ["Lucas S <me@luscasleo.dev>"]
6
6
  readme = "README.md"