nebu 0.1.104__py3-none-any.whl → 0.1.105__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.
- nebu/processors/consumer.py +30 -4
- {nebu-0.1.104.dist-info → nebu-0.1.105.dist-info}/METADATA +1 -1
- {nebu-0.1.104.dist-info → nebu-0.1.105.dist-info}/RECORD +6 -6
- {nebu-0.1.104.dist-info → nebu-0.1.105.dist-info}/WHEEL +0 -0
- {nebu-0.1.104.dist-info → nebu-0.1.105.dist-info}/licenses/LICENSE +0 -0
- {nebu-0.1.104.dist-info → nebu-0.1.105.dist-info}/top_level.txt +0 -0
nebu/processors/consumer.py
CHANGED
@@ -808,7 +808,18 @@ def process_message(message_id: str, message_data: Dict[str, str]) -> None:
|
|
808
808
|
input_obj = input_type_class.model_validate(
|
809
809
|
content_for_validation
|
810
810
|
)
|
811
|
-
|
811
|
+
# Safe logging that avoids __repr__ issues with BaseModel objects
|
812
|
+
try:
|
813
|
+
if hasattr(input_obj, "model_dump"):
|
814
|
+
logger.debug(
|
815
|
+
f"Validated input model (BaseModel): {input_obj.model_dump()}"
|
816
|
+
)
|
817
|
+
else:
|
818
|
+
logger.debug(f"Validated input model: {input_obj}")
|
819
|
+
except Exception as log_e:
|
820
|
+
logger.debug(
|
821
|
+
f"Validated input model: <object of type {type(input_obj).__name__}> (repr failed: {log_e})"
|
822
|
+
)
|
812
823
|
except AttributeError:
|
813
824
|
logger.warning(
|
814
825
|
f"Warning: Input type class '{param_type_name}' not found in imported module."
|
@@ -830,13 +841,28 @@ def process_message(message_id: str, message_data: Dict[str, str]) -> None:
|
|
830
841
|
logger.error(f"Error constructing input object: {e}")
|
831
842
|
raise # Re-raise unexpected errors during input construction
|
832
843
|
|
833
|
-
#
|
834
|
-
|
844
|
+
# Safe logging that avoids __repr__ issues with BaseModel objects
|
845
|
+
try:
|
846
|
+
if hasattr(input_obj, "model_dump"):
|
847
|
+
logger.debug(f"Input object (BaseModel): {input_obj.model_dump()}")
|
848
|
+
else:
|
849
|
+
logger.debug(f"Input object: {input_obj}")
|
850
|
+
except Exception as log_e:
|
851
|
+
logger.debug(
|
852
|
+
f"Input object: <object of type {type(input_obj).__name__}> (repr failed: {log_e})"
|
853
|
+
)
|
835
854
|
|
836
855
|
# Execute the function
|
837
856
|
logger.info("Executing function...")
|
838
857
|
result = target_function(input_obj)
|
839
|
-
#
|
858
|
+
# Safe logging that avoids __repr__ issues with BaseModel objects if this debug line is uncommented
|
859
|
+
# try:
|
860
|
+
# if hasattr(result, "model_dump"):
|
861
|
+
# logger.debug(f"Raw Result (BaseModel): {result.model_dump()}")
|
862
|
+
# else:
|
863
|
+
# logger.debug(f"Raw Result: {result}")
|
864
|
+
# except Exception as log_e:
|
865
|
+
# logger.debug(f"Raw Result: <object of type {type(result).__name__}> (repr failed: {log_e})")
|
840
866
|
|
841
867
|
result_content = None # Default to None
|
842
868
|
if result is not None: # Only process if there's a result
|
@@ -13,7 +13,7 @@ nebu/containers/container.py,sha256=Mrh_gvMsTvDkj3CwpqIPzJ72IMw0gQIg64y548vq0yg,
|
|
13
13
|
nebu/containers/models.py,sha256=0j6NGy4yto-enRDh_4JH_ZTbHrLdSpuMOqNQPnIrwC4,6815
|
14
14
|
nebu/namespaces/models.py,sha256=EqUOpzhVBhvJw2P92ONDUbIgC31M9jMmcaG5vyOrsWg,497
|
15
15
|
nebu/namespaces/namespace.py,sha256=oeZyGqsIGIrppyjif1ZONsdTmqRgd9oSLFE1BChXTTE,5247
|
16
|
-
nebu/processors/consumer.py,sha256=
|
16
|
+
nebu/processors/consumer.py,sha256=v5JsuvEEUUBbe8sKGB2QjHca8FPHMIjq9Ntk32Uf3G4,58674
|
17
17
|
nebu/processors/consumer_process_worker.py,sha256=h--eNFKaLbUayxn88mB8oGGdrU2liE1dnwm_TPlewX8,36960
|
18
18
|
nebu/processors/decorate.py,sha256=AfHVCoNbW7RymccF5ewleEL-GlMiqVH1-t9bCmD60rk,58654
|
19
19
|
nebu/processors/default.py,sha256=cy4ETMdbdRGkrvbYec1o60h7mGDlGN5JsuUph0ENtDU,364
|
@@ -21,8 +21,8 @@ nebu/processors/models.py,sha256=g4B1t6Rgoy-NUEHBLeQc0EENzHXLDlWSio8Muv7cTDU,409
|
|
21
21
|
nebu/processors/processor.py,sha256=vbafqawdZhh5VRoBE5C5wRR_32iSyzoDTqK7qsNQvaM,19242
|
22
22
|
nebu/redis/models.py,sha256=coPovAcVXnOU1Xh_fpJL4PO3QctgK9nBe5QYoqEcnxg,1230
|
23
23
|
nebu/services/service.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
24
|
-
nebu-0.1.
|
25
|
-
nebu-0.1.
|
26
|
-
nebu-0.1.
|
27
|
-
nebu-0.1.
|
28
|
-
nebu-0.1.
|
24
|
+
nebu-0.1.105.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
25
|
+
nebu-0.1.105.dist-info/METADATA,sha256=B9wVIWPowGZHwobFzrRBymh14aUiwL_GAFTNRR80roo,1798
|
26
|
+
nebu-0.1.105.dist-info/WHEEL,sha256=zaaOINJESkSfm_4HQVc5ssNzHCPXhJm0kEUakpsEHaU,91
|
27
|
+
nebu-0.1.105.dist-info/top_level.txt,sha256=uLIbEKJeGSHWOAJN5S0i5XBGwybALlF9bYoB1UhdEgQ,5
|
28
|
+
nebu-0.1.105.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|