Skip to content

Commit 9057702

Browse files
committed
Disable caching in JinjaInterpolation
1 parent fc4728c commit 9057702

File tree

1 file changed

+2
-2
lines changed
  • airbyte_cdk/sources/declarative/interpolation

1 file changed

+2
-2
lines changed

airbyte_cdk/sources/declarative/interpolation/jinja.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,15 +145,15 @@ def _eval(self, s: Optional[str], context: Mapping[str, Any]) -> Optional[str]:
145145
# It can be returned as is
146146
return s
147147

148-
@cache
148+
# @cache
149149
def _find_undeclared_variables(self, s: Optional[str]) -> Set[str]:
150150
"""
151151
Find undeclared variables and cache them
152152
"""
153153
ast = _ENVIRONMENT.parse(s) # type: ignore # parse is able to handle None
154154
return meta.find_undeclared_variables(ast)
155155

156-
@cache
156+
# @cache
157157
def _compile(self, s: str) -> Template:
158158
"""
159159
We must cache the Jinja Template ourselves because we're using `from_string` instead of a template loader

0 commit comments

Comments
 (0)