Drew Sonne
08/24/2021, 8:16 AMEventMetadata.asset(...)
to link them, but it doesn't seem to work as the asset from previous solids isn't available for subsequent solid executions. Am I correct in saying the assets is only available for referencing once the pipeline execution has finished?
metadata={
"source_asset": EventMetadata.asset(AssetKey(["foo-bar","hello-world"])),
...
}
gives
dagster.core.errors.DagsterInvalidEventMetadata: Could not resolve the metadata value for "source_asset" to a known type. Consider wrapping the value with the appropriate EventMetadata type.
Yassine Marzougui
08/24/2021, 9:11 AMDagsterAssetMetadataEntryData
and DagsterPipelineRunMetadataEntryData
(which are part of the EntryDataUnion) are missing from this line.
Adding DagsterAssetMetadataEntryData
seems to fix your error.Drew Sonne
08/24/2021, 10:05 AMYassine Marzougui
08/24/2021, 10:17 AMDrew Sonne
08/24/2021, 10:31 AMYassine Marzougui
08/24/2021, 10:42 AM