Alex Berndt
02/27/2024, 10:01 PMScout
02/27/2024, 10:01 PMAutoMaterializePolicys
, which allow materializing an asset whenever its parent assets are materialized. This feature is currently marked experimental, and some of the APIs may change in the future. Here is an example from the documentation on how to use an eager auto materialization policy: python from dagster import AutoMaterializePolicy, asset @asset def asset1(): ... @asset(auto_materialize_policy=AutoMaterializePolicy.eager(), deps=[asset1]) def asset2(): ...
In this example, asset2
is downstream of asset1
, and with the eager AutoMaterializePolicy
, asset2
will be materialized every time asset1
is materialized. To learn more about auto-materializing assets, you can visit the [Concept page](https://docs.dagster.io/concepts/assets/asset-auto-execution) on auto-materialization in the documentation.