Skip to content

Commit 97a932a

Browse files
committed
Add caching to components resolver
1 parent c478df5 commit 97a932a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

airbyte_cdk/sources/declarative/manifest_declarative_source.py

+3
Original file line numberDiff line numberDiff line change
@@ -334,6 +334,9 @@ def _dynamic_stream_configs(
334334
f"Expected one of {list(COMPONENTS_RESOLVER_TYPE_MAPPING.keys())}."
335335
)
336336

337+
if "retriever" in components_resolver_config:
338+
components_resolver_config["retriever"]["requester"]["use_cache"] = True
339+
337340
# Create a resolver for dynamic components based on type
338341
components_resolver = self._constructor.create_component(
339342
COMPONENTS_RESOLVER_TYPE_MAPPING[resolver_type], components_resolver_config, config

0 commit comments

Comments
 (0)