Skip to content

Commit f047339

Browse files
committed
Fix: Make flat_graph a cached property
1 parent a759712 commit f047339

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sqlmesh/dbt/manifest.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
import typing as t
99
from argparse import Namespace
1010
from collections import defaultdict
11+
from functools import cached_property
1112
from pathlib import Path
1213

1314
from dbt import constants as dbt_constants, flags
@@ -158,7 +159,7 @@ def all_macros(self) -> t.Dict[str, t.Dict[str, MacroInfo]]:
158159
result[package_name][macro_name] = macro_config.info
159160
return result
160161

161-
@property
162+
@cached_property
162163
def flat_graph(self) -> t.Dict[str, t.Any]:
163164
return {
164165
"exposures": {

0 commit comments

Comments
 (0)