Skip to content

How to provide deps to graph_assets? #15443

Answered by clairelin135
clairelin135 asked this question in Q&A
Discussion options

You must be logged in to vote

Here's an example:

from dagster import graph_asset, asset, AssetIn, op, Nothing, In


@asset
def upstream():
    ...


@op(ins={"upstream": In(Nothing)})
def my_op():
    return ...


@graph_asset(
    ins={"upstream": AssetIn(dagster_type=Nothing)},
)
def my_graph_asset(upstream):
    return my_op(upstream)

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@andrejakobsen
Comment options

Answer selected by clairelin135
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants