jararaca 0.2.37a3__py3-none-any.whl → 0.2.37a5__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.
- jararaca/messagebus/worker.py +3 -2
- jararaca/persistence/utilities.py +1 -2
- {jararaca-0.2.37a3.dist-info → jararaca-0.2.37a5.dist-info}/METADATA +1 -1
- {jararaca-0.2.37a3.dist-info → jararaca-0.2.37a5.dist-info}/RECORD +8 -8
- pyproject.toml +1 -1
- {jararaca-0.2.37a3.dist-info → jararaca-0.2.37a5.dist-info}/LICENSE +0 -0
- {jararaca-0.2.37a3.dist-info → jararaca-0.2.37a5.dist-info}/WHEEL +0 -0
- {jararaca-0.2.37a3.dist-info → jararaca-0.2.37a5.dist-info}/entry_points.txt +0 -0
jararaca/messagebus/worker.py
CHANGED
|
@@ -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
|
|
|
@@ -281,7 +281,8 @@ class MessageHandlerCallback:
|
|
|
281
281
|
):
|
|
282
282
|
await handler(builded_message)
|
|
283
283
|
if not incoming_message_spec.auto_ack:
|
|
284
|
-
|
|
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:
|
|
@@ -47,7 +47,7 @@ class Identifiable(BaseModel, Generic[IDENTIFIABLE_SCHEMA_T]):
|
|
|
47
47
|
def instance(
|
|
48
48
|
id: UUID, data: IDENTIFIABLE_SCHEMA_T
|
|
49
49
|
) -> "Identifiable[IDENTIFIABLE_SCHEMA_T]":
|
|
50
|
-
return Identifiable[
|
|
50
|
+
return Identifiable[data.__class__](id=id, data=data) # type: ignore[name-defined]
|
|
51
51
|
|
|
52
52
|
|
|
53
53
|
def nowutc() -> datetime:
|
|
@@ -55,7 +55,6 @@ def nowutc() -> datetime:
|
|
|
55
55
|
|
|
56
56
|
|
|
57
57
|
class DatedEntity(BaseEntity):
|
|
58
|
-
__abstract__ = True
|
|
59
58
|
|
|
60
59
|
created_at: Mapped[datetime] = mapped_column(
|
|
61
60
|
DateTime(timezone=True), nullable=False, default=nowutc
|
|
@@ -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=
|
|
3
|
+
pyproject.toml,sha256=douQ_3hQB8-dWXFceI6Q6ewmdwfXBdzYxwG35GE7wbw,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=
|
|
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
|
|
@@ -30,7 +30,7 @@ jararaca/persistence/interceptors/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeR
|
|
|
30
30
|
jararaca/persistence/interceptors/aiosqa_interceptor.py,sha256=H6ZjOdosYGCZUzKjugiXQwJkAbnsL4HnkZLOEQhULEc,1986
|
|
31
31
|
jararaca/persistence/session.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
32
32
|
jararaca/persistence/sort_filter.py,sha256=agggpN0YvNjUr6wJjy69NkaqxoDDW13ys9B3r85OujA,9226
|
|
33
|
-
jararaca/persistence/utilities.py,sha256=
|
|
33
|
+
jararaca/persistence/utilities.py,sha256=Up2cQKyuD1RRwjqcT58-2LPSNgIJBvWVYQsQiEnNTGc,12477
|
|
34
34
|
jararaca/presentation/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
35
35
|
jararaca/presentation/decorators.py,sha256=eL2YCgMSr19m4YCri5PQU46NRxf0QxsqDnz6MqKu0YQ,8389
|
|
36
36
|
jararaca/presentation/hooks.py,sha256=WBbU5DG3-MAm2Ro2YraQyYG_HENfizYfyShL2ktHi6k,1980
|
|
@@ -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.
|
|
63
|
-
jararaca-0.2.
|
|
64
|
-
jararaca-0.2.
|
|
65
|
-
jararaca-0.2.
|
|
66
|
-
jararaca-0.2.
|
|
62
|
+
jararaca-0.2.37a5.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
|
|
63
|
+
jararaca-0.2.37a5.dist-info/METADATA,sha256=WwumfyybeoOs1IAyoBfuDpKvFUPDJvG7v5ctgM_wnQA,8554
|
|
64
|
+
jararaca-0.2.37a5.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
|
|
65
|
+
jararaca-0.2.37a5.dist-info/entry_points.txt,sha256=WIh3aIvz8LwUJZIDfs4EeH3VoFyCGEk7cWJurW38q0I,45
|
|
66
|
+
jararaca-0.2.37a5.dist-info/RECORD,,
|
pyproject.toml
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|