Hi everyone. How to define dependencies for `Asset...
# ask-community
s
Hi everyone. How to define dependencies for
AssetDefinitions.from_graph
? Suppose that I have An asset
Asset1
which has key
AssetKey("prefix", "asset1")
and
Asset2
which has key
AssetKey("prefix", "asset2")
. And a graph
GraphX
, how can I use
AssetDefinitions.from_graph(GraphX,…)
to depends on
Asset1
and
Asset2
.
One note that we don’t want the
GraphX
to have upstream dependencies. We only want the asset constructed from
GraphX
to have upstream dependencies. I don’t know if it is possible.
c
This is not currently possible unfortunately - all dependencies must correspond to an input on the actual graph. It's a reasonable request though, so made an issue to track it https://github.com/dagster-io/dagster/issues/8712
👍 2