From f0473392f50bcae0e80cd84471dda9a51dc233eb Mon Sep 17 00:00:00 2001 From: Iaroslav Zeigerman Date: Mon, 25 Aug 2025 15:14:39 -0700 Subject: [PATCH] Fix: Make flat_graph a cached property --- sqlmesh/dbt/manifest.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sqlmesh/dbt/manifest.py b/sqlmesh/dbt/manifest.py index 7414325902..85a8f7205e 100644 --- a/sqlmesh/dbt/manifest.py +++ b/sqlmesh/dbt/manifest.py @@ -8,6 +8,7 @@ import typing as t from argparse import Namespace from collections import defaultdict +from functools import cached_property from pathlib import Path from dbt import constants as dbt_constants, flags @@ -158,7 +159,7 @@ def all_macros(self) -> t.Dict[str, t.Dict[str, MacroInfo]]: result[package_name][macro_name] = macro_config.info return result - @property + @cached_property def flat_graph(self) -> t.Dict[str, t.Any]: return { "exposures": {