Zach
02/07/2024, 12:11 AM@op
def op1(some_input: str)
return 1
@graph_asset():
op1()
How do I construct run config that would pass a value to some_input
as an unconnected input?Scout
02/07/2024, 12:11 AMpython from dagster import op, graph_asset @op def op1(some_input: str): return some_input @graph_asset def my_graph_asset(): op1()
To execute this graph asset and pass a value to some_input
, you would construct a run config that specifies the value for that input. The run config would look something like this: yaml ops: op1: inputs: some_input: "value_to_pass"
When you execute the graph asset, you would provide this run config to specify the value for some_input
. In Dagit, you can provide this config by using the config editor when you materialize the asset, or you can provide it programmatically if you are using the Python API to execute the asset. Please note that the exact structure of the run config might vary depending on the version of Dagster you are using and the specific setup of your assets and ops. Always refer to the latest Dagster documentation for the most accurate and up-to-date information on constructing run configs for graph assets.Zach
02/07/2024, 2:12 AM