airbyte-cdk 6.60.0.post32.dev16509172620__py3-none-any.whl → 6.60.0.post35.dev16509779638__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/connector_builder/main.py +1 -0
- airbyte_cdk/sources/declarative/concurrent_declarative_source.py +4 -2
- airbyte_cdk/sources/file_based/file_based_source.py +3 -3
- {airbyte_cdk-6.60.0.post32.dev16509172620.dist-info → airbyte_cdk-6.60.0.post35.dev16509779638.dist-info}/METADATA +1 -1
- {airbyte_cdk-6.60.0.post32.dev16509172620.dist-info → airbyte_cdk-6.60.0.post35.dev16509779638.dist-info}/RECORD +9 -9
- {airbyte_cdk-6.60.0.post32.dev16509172620.dist-info → airbyte_cdk-6.60.0.post35.dev16509779638.dist-info}/LICENSE.txt +0 -0
- {airbyte_cdk-6.60.0.post32.dev16509172620.dist-info → airbyte_cdk-6.60.0.post35.dev16509779638.dist-info}/LICENSE_SHORT +0 -0
- {airbyte_cdk-6.60.0.post32.dev16509172620.dist-info → airbyte_cdk-6.60.0.post35.dev16509779638.dist-info}/WHEEL +0 -0
- {airbyte_cdk-6.60.0.post32.dev16509172620.dist-info → airbyte_cdk-6.60.0.post35.dev16509779638.dist-info}/entry_points.txt +0 -0
@@ -23,6 +23,7 @@ from airbyte_cdk.models import (
|
|
23
23
|
AirbyteStateMessage,
|
24
24
|
ConfiguredAirbyteCatalog,
|
25
25
|
)
|
26
|
+
from airbyte_cdk.models.airbyte_protocol_serializers import ab_message_to_string
|
26
27
|
from airbyte_cdk.sources.declarative.manifest_declarative_source import ManifestDeclarativeSource
|
27
28
|
from airbyte_cdk.sources.source import Source
|
28
29
|
from airbyte_cdk.utils.traced_exception import AirbyteTracedException
|
@@ -63,7 +63,7 @@ from airbyte_cdk.sources.streams.concurrent.helpers import get_primary_key_from_
|
|
63
63
|
class ConcurrentDeclarativeSource(ManifestDeclarativeSource, Generic[TState]):
|
64
64
|
# By default, we defer to a value of 2. A value lower than than could cause a PartitionEnqueuer to be stuck in a state of deadlock
|
65
65
|
# because it has hit the limit of futures but not partition reader is consuming them.
|
66
|
-
_LOWEST_SAFE_CONCURRENCY_LEVEL = 2
|
66
|
+
_LOWEST_SAFE_CONCURRENCY_LEVEL = 1 # TODO: revert-me: 2
|
67
67
|
|
68
68
|
def __init__(
|
69
69
|
self,
|
@@ -119,7 +119,9 @@ class ConcurrentDeclarativeSource(ManifestDeclarativeSource, Generic[TState]):
|
|
119
119
|
) # Partition_generation iterates using range based on this value. If this is floored to zero we end up in a dead lock during start up
|
120
120
|
else:
|
121
121
|
concurrency_level = self._LOWEST_SAFE_CONCURRENCY_LEVEL
|
122
|
-
initial_number_of_partitions_to_generate =
|
122
|
+
initial_number_of_partitions_to_generate = max(
|
123
|
+
self._LOWEST_SAFE_CONCURRENCY_LEVEL // 2, 1
|
124
|
+
)
|
123
125
|
|
124
126
|
self._concurrent_source = ConcurrentSource.create(
|
125
127
|
num_workers=concurrency_level,
|
@@ -77,9 +77,9 @@ from airbyte_cdk.sources.streams.concurrent.cursor import CursorField
|
|
77
77
|
from airbyte_cdk.utils.analytics_message import create_analytics_message
|
78
78
|
from airbyte_cdk.utils.traced_exception import AirbyteTracedException
|
79
79
|
|
80
|
-
DEFAULT_CONCURRENCY = 100
|
81
|
-
MAX_CONCURRENCY = 100
|
82
|
-
INITIAL_N_PARTITIONS = MAX_CONCURRENCY // 2
|
80
|
+
DEFAULT_CONCURRENCY = 1.0 # TODO: Revert me: 100
|
81
|
+
MAX_CONCURRENCY = 1 # TODO: Revert me: 100
|
82
|
+
INITIAL_N_PARTITIONS = max(MAX_CONCURRENCY // 2, 1)
|
83
83
|
IDENTITIES_STREAM = "identities"
|
84
84
|
|
85
85
|
|
@@ -16,7 +16,7 @@ airbyte_cdk/connector.py,sha256=m8fWTbFkatmR0ID6DAuL75sb9gQPKGBjLqqROLq7BaY,4216
|
|
16
16
|
airbyte_cdk/connector_builder/README.md,sha256=Hw3wvVewuHG9-QgsAq1jDiKuLlStDxKBz52ftyNRnBw,1665
|
17
17
|
airbyte_cdk/connector_builder/__init__.py,sha256=4Hw-PX1-VgESLF16cDdvuYCzGJtHntThLF4qIiULWeo,61
|
18
18
|
airbyte_cdk/connector_builder/connector_builder_handler.py,sha256=OFTzxyfAevI3Um8fXTOLTgoCc4Sx9NzF0boqYkAATfM,6590
|
19
|
-
airbyte_cdk/connector_builder/main.py,sha256=
|
19
|
+
airbyte_cdk/connector_builder/main.py,sha256=Eh0W4gebKyz8w8Asw7jWvMQ6EPuh3uBUmNcVCbOYvB8,3894
|
20
20
|
airbyte_cdk/connector_builder/models.py,sha256=9pIZ98LW_d6fRS39VdnUOf3cxGt4TkC5MJ0_OrzcCRk,1578
|
21
21
|
airbyte_cdk/connector_builder/test_reader/__init__.py,sha256=iTwBMoI9vaJotEgpqZbFjlxRcbxXYypSVJ9YxeHk7wc,120
|
22
22
|
airbyte_cdk/connector_builder/test_reader/helpers.py,sha256=Iczn-_iczS2CaIAunWwyFcX0uLTra8Wh9JVfzm1Gfxo,26765
|
@@ -86,7 +86,7 @@ airbyte_cdk/sources/declarative/checks/check_stream.py,sha256=QeExVmpSYjr_CnghHu
|
|
86
86
|
airbyte_cdk/sources/declarative/checks/connection_checker.py,sha256=MBRJo6WJlZQHpIfOGaNOkkHUmgUl_4wDM6VPo41z5Ss,1383
|
87
87
|
airbyte_cdk/sources/declarative/concurrency_level/__init__.py,sha256=5XUqrmlstYlMM0j6crktlKQwALek0uiz2D3WdM46MyA,191
|
88
88
|
airbyte_cdk/sources/declarative/concurrency_level/concurrency_level.py,sha256=YIwCTCpOr_QSNW4ltQK0yUGWInI8PKNY216HOOegYLk,2101
|
89
|
-
airbyte_cdk/sources/declarative/concurrent_declarative_source.py,sha256=
|
89
|
+
airbyte_cdk/sources/declarative/concurrent_declarative_source.py,sha256=woOxp9q2PNpPc3rLsLGrdoMFpkXPNcmLb04VxPgPRe8,28606
|
90
90
|
airbyte_cdk/sources/declarative/datetime/__init__.py,sha256=4Hw-PX1-VgESLF16cDdvuYCzGJtHntThLF4qIiULWeo,61
|
91
91
|
airbyte_cdk/sources/declarative/datetime/datetime_parser.py,sha256=_zGNGq31RNy_0QBLt_EcTvgPyhj7urPdx6oA3M5-r3o,3150
|
92
92
|
airbyte_cdk/sources/declarative/datetime/min_max_datetime.py,sha256=0BHBtDNQZfvwM45-tY5pNlTcKAFSGGNxemoi0Jic-0E,5785
|
@@ -264,7 +264,7 @@ airbyte_cdk/sources/file_based/discovery_policy/__init__.py,sha256=gl3ey6mZbyfra
|
|
264
264
|
airbyte_cdk/sources/file_based/discovery_policy/abstract_discovery_policy.py,sha256=dCfXX529Rd5rtopg4VeEgTPJjFtqjtjzPq6LCw18Wt0,605
|
265
265
|
airbyte_cdk/sources/file_based/discovery_policy/default_discovery_policy.py,sha256=-xujTidtrq6HC00WKbjQh1CZdT5LMuzkp5BLjqDmfTY,1007
|
266
266
|
airbyte_cdk/sources/file_based/exceptions.py,sha256=WP0qkG6fpWoBpOyyicgp5YNE393VWyegq5qSy0v4QtM,7362
|
267
|
-
airbyte_cdk/sources/file_based/file_based_source.py,sha256=
|
267
|
+
airbyte_cdk/sources/file_based/file_based_source.py,sha256=d5OGU_QY6PV3fRTQA2NmhMoXGFS8OmAfe3KL4umiYsc,20105
|
268
268
|
airbyte_cdk/sources/file_based/file_based_stream_permissions_reader.py,sha256=4e7FXqQ9hueacexC0SyrZyjF8oREYHza8pKF9CgKbD8,5050
|
269
269
|
airbyte_cdk/sources/file_based/file_based_stream_reader.py,sha256=rwz8AhEIqYB9gBF7uW9eR--eUiHOntzuwLH8jFHNacE,7854
|
270
270
|
airbyte_cdk/sources/file_based/file_record_data.py,sha256=Vkr5AyZzlsOezjVCLhFrm_WpymlQdolWCnFAwqLJ9Iw,453
|
@@ -424,9 +424,9 @@ airbyte_cdk/utils/slice_hasher.py,sha256=EDxgROHDbfG-QKQb59m7h_7crN1tRiawdf5uU7G
|
|
424
424
|
airbyte_cdk/utils/spec_schema_transformations.py,sha256=-5HTuNsnDBAhj-oLeQXwpTGA0HdcjFOf2zTEMUTTg_Y,816
|
425
425
|
airbyte_cdk/utils/stream_status_utils.py,sha256=ZmBoiy5HVbUEHAMrUONxZvxnvfV9CesmQJLDTAIWnWw,1171
|
426
426
|
airbyte_cdk/utils/traced_exception.py,sha256=bc5jMk8Z3AnSL-vqsgPCNgHzWqGTKZODHSg7VHiUyj0,6256
|
427
|
-
airbyte_cdk-6.60.0.
|
428
|
-
airbyte_cdk-6.60.0.
|
429
|
-
airbyte_cdk-6.60.0.
|
430
|
-
airbyte_cdk-6.60.0.
|
431
|
-
airbyte_cdk-6.60.0.
|
432
|
-
airbyte_cdk-6.60.0.
|
427
|
+
airbyte_cdk-6.60.0.post35.dev16509779638.dist-info/LICENSE.txt,sha256=Wfe61S4BaGPj404v8lrAbvhjYR68SHlkzeYrg3_bbuM,1051
|
428
|
+
airbyte_cdk-6.60.0.post35.dev16509779638.dist-info/LICENSE_SHORT,sha256=aqF6D1NcESmpn-cqsxBtszTEnHKnlsp8L4x9wAh3Nxg,55
|
429
|
+
airbyte_cdk-6.60.0.post35.dev16509779638.dist-info/METADATA,sha256=ikixxTUJkzVxAj6iNUXzfLrRFb11T2rtXK1j4Pc9tUM,6544
|
430
|
+
airbyte_cdk-6.60.0.post35.dev16509779638.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
|
431
|
+
airbyte_cdk-6.60.0.post35.dev16509779638.dist-info/entry_points.txt,sha256=AKWbEkHfpzzk9nF9tqBUaw1MbvTM4mGtEzmZQm0ZWvM,139
|
432
|
+
airbyte_cdk-6.60.0.post35.dev16509779638.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|