Ginger Balmat
02/15/2022, 3:08 PMAssetMaterialization
events. I have an op
which yields this event:
yield AssetMaterialization(
asset_key="something_important",
metadata={
"path": EventMetadata.text("path/to/something/important")
}
)
I have a job
in a completely different repository listening for this event, which relies on that value for path
in the metadata. I've found that I can access the metadata in my asset_sensor
function using this:
asset_event.dagster_event.event_specific_data.materialization.metadata_entries[0].entry_data.text
This seems a bit convoluted though. Is there a better way to access AssetMaterialization
metadata so that it can be passed on to future jobs?claire
02/15/2022, 5:39 PMGinger Balmat
02/15/2022, 5:51 PM