Ensure that upstream assets are materialized #17872
-
I’m explicitly defining asset dependencies like so:
How do I ensure all upstream assets are also being materialized whether in Dagit or via python? Right now, I get this warning: “Materializing these assets may fail because the upstream assets listed below have not been materialized yet.” The question was originally asked in Dagster Slack. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
It depends on how you are running the asset. If you are in the global asset graph, clicking an asset, then clicking the "Materialize" button, there isn't a way to automatically run the parent assets as well. You'd need to also select those assets before clicking "Materialize" If you are executing the asset in a job or from a schedule or sensor, you can use the |
Beta Was this translation helpful? Give feedback.
It depends on how you are running the asset. If you are in the global asset graph, clicking an asset, then clicking the "Materialize" button, there isn't a way to automatically run the parent assets as well. You'd need to also select those assets before clicking "Materialize"
If you are executing the asset in a job or from a schedule or sensor, you can use the
AssetSelection
API (docs) to also include the parents in the selection