https://dagster.io/ logo
#ask-community
Title
# ask-community
c

Charles

03/31/2023, 11:40 AM
Is it possible to use run configurations with assets? If so is there an example anywhere?
f

Frederik Löw

03/31/2023, 12:16 PM
Had the same problem, where I tried to materialize an asset, that has config. I found this question ( and answer) helpful: https://dagster.slack.com/archives/C01U954MEER/p1678783501272329
v

Vinnie

03/31/2023, 12:31 PM
I’ve also been waiting for this feature. Currently the workarounds are to either use
define_asset_job
and configure the job, or use a graph-backed asset and configure the graph, e.g.
Copy code
@graph(config=conf)
def my_graph():
    ...

@graph_asset
def my_asset():
    return my_graph()
c

Charles

03/31/2023, 12:39 PM
Thanks guys! If there's a full example that'd be super useful!
s

sean

03/31/2023, 6:39 PM
Dagster assets can take a
config_schema
just like ops: https://docs.dagster.io/_apidocs/assets#dagster.asset
c

Charles

04/02/2023, 10:57 AM
Thanks @sean - can you please point me to an example that uses config_schema - ideally from yaml?
5 Views