Aaron08/10/2022, 5:57 PM
to create a job to materializes assets, I need to select all prerequisite assets rather than just the one I want? It would be nice if I could ask for only a specific asset (the one I’m interested in), and then dagster could figure out which upstream ones need to be computed based on knowledge of the dependencies. Is this behaviour possible at all?
Tom Reilly08/10/2022, 6:26 PM
. AssetSelection has an upstream method that I think would solve your use case. Going off this example in the docstring it seems like you could do something like
is the key for the single asset you are interested in and pass that into the
Aaron08/10/2022, 6:31 PM
, but hadn’t noticed the
method. I’ll give that a try - thanks!