Holger Bruch
05/31/2023, 5:12 AMAutoMaterializePolicy.eager()
policy to most of my assets via load_assets_from_modules
but lazy()
for one of them. I expected to be able to override it for this single asset by adding auto_materialize_policy
to it, but get a DagsterInvalidDefinitionError
“AutoMaterializePolicy already exists on assets”. Is there another option than defining this asset in a different module or defining an explicit asset/policy-mapping for each asset?rex
05/31/2023, 5:04 PMdagster_auto_materialize_policy:
type: lazy
It will get your desired AMP.rex
05/31/2023, 5:05 PMHolger Bruch
05/31/2023, 9:07 PMrex
05/31/2023, 9:08 PMload_assets_from_modules
). @claire mind taking a look at this?claire
05/31/2023, 11:14 PMHolger Bruch
06/01/2023, 4:47 AMdefault_auto_materialize_policy
would be perhaps an option, in case more people struggle with that. For now I’ll split my modules.