Skip to content

Commit df890ed

Browse files
committed
deepcopy
1 parent 07abfda commit df890ed

File tree

1 file changed

+2
-7
lines changed
  • airbyte_cdk/manifest_server/command_processor

1 file changed

+2
-7
lines changed

airbyte_cdk/manifest_server/command_processor/utils.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import copy
12
from typing import Any, List, Mapping, Optional
23

34
from airbyte_protocol_dataclasses.models import AirbyteStateMessage
@@ -13,12 +14,6 @@
1314
ConcurrentDeclarativeSource,
1415
TestLimits,
1516
)
16-
from airbyte_cdk.sources.declarative.manifest_declarative_source import (
17-
ManifestDeclarativeSource,
18-
)
19-
from airbyte_cdk.sources.declarative.parsers.model_to_component_factory import (
20-
ModelToComponentFactory,
21-
)
2217

2318
SHOULD_NORMALIZE_KEY = "__should_normalize"
2419
SHOULD_MIGRATE_KEY = "__should_migrate"
@@ -71,7 +66,7 @@ def build_source(
7166
) -> ConcurrentDeclarativeSource[Optional[List[AirbyteStateMessage]]]:
7267
# We enforce a concurrency level of 1 so that the stream is processed on a single thread
7368
# to retain ordering for the grouping of the builder message responses.
74-
manifest_no_concurrency = dict(manifest)
69+
manifest_no_concurrency = copy.deepcopy(manifest)
7570
if "concurrency_level" in manifest_no_concurrency:
7671
manifest_no_concurrency["concurrency_level"]["default_concurrency"] = 1
7772
else:

0 commit comments

Comments
 (0)