Skip to content

Commit 0245369

Browse files
committed
[core-apis][experimental] Definitions.get_all_asset_specs, Definitions.with_reconstruction_metadata
1 parent dfedc60 commit 0245369

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

python_modules/dagster/dagster/_core/definitions/definitions_class.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
from typing_extensions import Self
66

77
import dagster._check as check
8-
from dagster._annotations import deprecated, experimental, public
8+
from dagster._annotations import deprecated, preview, public
99
from dagster._core.definitions.asset_checks import AssetChecksDefinition
1010
from dagster._core.definitions.asset_graph import AssetGraph
1111
from dagster._core.definitions.asset_spec import AssetSpec
@@ -685,13 +685,13 @@ def merge(*def_sets: "Definitions") -> "Definitions":
685685
)
686686

687687
@public
688-
@experimental
688+
@preview
689689
def get_all_asset_specs(self) -> Sequence[AssetSpec]:
690690
"""Returns an AssetSpec object for every asset contained inside the Definitions object."""
691691
asset_graph = self.get_asset_graph()
692692
return [asset_node.to_asset_spec() for asset_node in asset_graph.asset_nodes]
693693

694-
@experimental
694+
@preview
695695
def with_reconstruction_metadata(self, reconstruction_metadata: Mapping[str, str]) -> Self:
696696
"""Add reconstruction metadata to the Definitions object. This is typically used to cache data
697697
loaded from some external API that is computed during initialization of a code server.

0 commit comments

Comments
 (0)