@@ -71,22 +71,26 @@ def build_source(
7171) -> ConcurrentDeclarativeSource [Optional [List [AirbyteStateMessage ]]]:
7272 # We enforce a concurrency level of 1 so that the stream is processed on a single thread
7373 # to retain ordering for the grouping of the builder message responses.
74- if "concurrency_level" in manifest :
75- manifest ["concurrency_level" ]["default_concurrency" ] = 1
74+ manifest_no_concurrency = dict (manifest )
75+ if "concurrency_level" in manifest_no_concurrency :
76+ manifest_no_concurrency ["concurrency_level" ]["default_concurrency" ] = 1
7677 else :
77- manifest ["concurrency_level" ] = {"type" : "ConcurrencyLevel" , "default_concurrency" : 1 }
78+ manifest_no_concurrency ["concurrency_level" ] = {
79+ "type" : "ConcurrencyLevel" ,
80+ "default_concurrency" : 1 ,
81+ }
7882
7983 return ConcurrentDeclarativeSource (
8084 catalog = catalog ,
8185 state = state ,
82- source_config = manifest ,
86+ source_config = manifest_no_concurrency ,
8387 config = config ,
8488 normalize_manifest = should_normalize_manifest (manifest ),
8589 migrate_manifest = should_migrate_manifest (manifest ),
8690 emit_connector_builder_messages = True ,
8791 limits = TestLimits (
88- max_pages_per_slice = page_limit ,
89- max_slices = slice_limit ,
90- max_records = record_limit ,
92+ max_pages_per_slice = page_limit or TestLimits . DEFAULT_MAX_PAGES_PER_SLICE ,
93+ max_slices = slice_limit or TestLimits . DEFAULT_MAX_SLICES ,
94+ max_records = record_limit or TestLimits . DEFAULT_MAX_RECORDS ,
9195 ),
9296 )
0 commit comments