Eric
11/07/2019, 6:04 PMalex
11/07/2019, 6:15 PM@pipeline
decorated function is special - we just use it to build up the dependency graph of solids to define the pipeline - not resolve any “runtime” values or inputs.
What you are looking to do is probably
@pipeline
def hello_world():
execute_db2_sql() # dont fill out inputs here
execute_pipeline(hello_world, environment_dict={'solids': {'execute_db2_sql': {'inputs': {'conn_str': '<CONN>', 'sql': 'SELECT dagster FROM good_stuff''}}}})
environment_dict
and in dagit you use the yaml editor.Eric
11/07/2019, 6:22 PMalex
11/07/2019, 6:34 PMEric
11/07/2019, 6:37 PMalex
11/07/2019, 6:37 PMCagatay K
11/07/2019, 7:08 PM