airbyte-cdk 6.16.0__py3-none-any.whl → 6.16.1__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.
- airbyte_cdk/entrypoint.py +13 -1
- {airbyte_cdk-6.16.0.dist-info → airbyte_cdk-6.16.1.dist-info}/METADATA +1 -1
- {airbyte_cdk-6.16.0.dist-info → airbyte_cdk-6.16.1.dist-info}/RECORD +6 -6
- {airbyte_cdk-6.16.0.dist-info → airbyte_cdk-6.16.1.dist-info}/LICENSE.txt +0 -0
- {airbyte_cdk-6.16.0.dist-info → airbyte_cdk-6.16.1.dist-info}/WHEEL +0 -0
- {airbyte_cdk-6.16.0.dist-info → airbyte_cdk-6.16.1.dist-info}/entry_points.txt +0 -0
airbyte_cdk/entrypoint.py
CHANGED
@@ -5,6 +5,7 @@
|
|
5
5
|
import argparse
|
6
6
|
import importlib
|
7
7
|
import ipaddress
|
8
|
+
import json
|
8
9
|
import logging
|
9
10
|
import os.path
|
10
11
|
import socket
|
@@ -46,6 +47,7 @@ logger = init_logger("airbyte")
|
|
46
47
|
|
47
48
|
VALID_URL_SCHEMES = ["https"]
|
48
49
|
CLOUD_DEPLOYMENT_MODE = "cloud"
|
50
|
+
_HAS_LOGGED_FOR_SERIALIZATION_ERROR = False
|
49
51
|
|
50
52
|
|
51
53
|
class AirbyteEntrypoint(object):
|
@@ -291,7 +293,17 @@ class AirbyteEntrypoint(object):
|
|
291
293
|
|
292
294
|
@staticmethod
|
293
295
|
def airbyte_message_to_string(airbyte_message: AirbyteMessage) -> str:
|
294
|
-
|
296
|
+
global _HAS_LOGGED_FOR_SERIALIZATION_ERROR
|
297
|
+
serialized_message = AirbyteMessageSerializer.dump(airbyte_message)
|
298
|
+
try:
|
299
|
+
return orjson.dumps(serialized_message).decode()
|
300
|
+
except Exception as exception:
|
301
|
+
if not _HAS_LOGGED_FOR_SERIALIZATION_ERROR:
|
302
|
+
logger.warning(
|
303
|
+
f"There was an error during the serialization of an AirbyteMessage: `{exception}`. This might impact the sync performances."
|
304
|
+
)
|
305
|
+
_HAS_LOGGED_FOR_SERIALIZATION_ERROR = True
|
306
|
+
return json.dumps(serialized_message)
|
295
307
|
|
296
308
|
@classmethod
|
297
309
|
def extract_state(cls, args: List[str]) -> Optional[Any]:
|
@@ -22,7 +22,7 @@ airbyte_cdk/destinations/vector_db_based/indexer.py,sha256=beiSi2Uu67EoTr7yQSaCJ
|
|
22
22
|
airbyte_cdk/destinations/vector_db_based/test_utils.py,sha256=MkqLiOJ5QyKbV4rNiJhe-BHM7FD-ADHQ4bQGf4c5lRY,1932
|
23
23
|
airbyte_cdk/destinations/vector_db_based/utils.py,sha256=FOyEo8Lc-fY8UyhpCivhZtIqBRyxf3cUt6anmK03fUY,1127
|
24
24
|
airbyte_cdk/destinations/vector_db_based/writer.py,sha256=nZ00xPiohElJmYktEZZIhr0m5EDETCHGhg0Lb2S7A20,5095
|
25
|
-
airbyte_cdk/entrypoint.py,sha256=
|
25
|
+
airbyte_cdk/entrypoint.py,sha256=xFLY2PV8mKXUaeBAknczbK6plrs4_B1WdWA6K3iaRJI,18555
|
26
26
|
airbyte_cdk/exception_handler.py,sha256=D_doVl3Dt60ASXlJsfviOCswxGyKF2q0RL6rif3fNks,2013
|
27
27
|
airbyte_cdk/logger.py,sha256=qi4UGuSYQQGaFaTVJlMD9lLppwqLXt1XBhwSXo-Q5IA,3660
|
28
28
|
airbyte_cdk/models/__init__.py,sha256=MOTiuML2wShBaMSIwikdjyye2uUWBjo4J1QFSbnoiM4,2075
|
@@ -342,8 +342,8 @@ airbyte_cdk/utils/slice_hasher.py,sha256=-pHexlNYoWYPnXNH-M7HEbjmeJe9Zk7SJijdQ7d
|
|
342
342
|
airbyte_cdk/utils/spec_schema_transformations.py,sha256=-5HTuNsnDBAhj-oLeQXwpTGA0HdcjFOf2zTEMUTTg_Y,816
|
343
343
|
airbyte_cdk/utils/stream_status_utils.py,sha256=ZmBoiy5HVbUEHAMrUONxZvxnvfV9CesmQJLDTAIWnWw,1171
|
344
344
|
airbyte_cdk/utils/traced_exception.py,sha256=C8uIBuCL_E4WnBAOPSxBicD06JAldoN9fGsQDp463OY,6292
|
345
|
-
airbyte_cdk-6.16.
|
346
|
-
airbyte_cdk-6.16.
|
347
|
-
airbyte_cdk-6.16.
|
348
|
-
airbyte_cdk-6.16.
|
349
|
-
airbyte_cdk-6.16.
|
345
|
+
airbyte_cdk-6.16.1.dist-info/LICENSE.txt,sha256=Wfe61S4BaGPj404v8lrAbvhjYR68SHlkzeYrg3_bbuM,1051
|
346
|
+
airbyte_cdk-6.16.1.dist-info/METADATA,sha256=HvM_Kt7mW96Ozq1yE78Q11fLP6PuP4LQIZHi_ay2gKE,5988
|
347
|
+
airbyte_cdk-6.16.1.dist-info/WHEEL,sha256=RaoafKOydTQ7I_I3JTrPCg6kUmTgtm4BornzOqyEfJ8,88
|
348
|
+
airbyte_cdk-6.16.1.dist-info/entry_points.txt,sha256=fj-e3PAQvsxsQzyyq8UkG1k8spunWnD4BAH2AwlR6NM,95
|
349
|
+
airbyte_cdk-6.16.1.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|