https://dagster.io/ logo
#announcements
Title
# announcements
d

Dylan Bienstock

02/03/2021, 7:24 PM
Hi everyone, I am attempting to pass a config schema into a solid that takes a input definition. However, whenever I pass the config schema in I get the following error:
Must pass the output from previous solid invocations or inputs to the composition function as inputs when invoking solids during composition.
Does anyone have any ideas on why this might be happening. Thanks 🙂 Code example
Copy code
config = {
    "solids": {
        "solid_b": {
            "config": {'path': 'test.txt'}   
        }
    }
}

@pipeline
def test_pipeline():
  test_solid = solid_b(solid_a, config_schema=config)
a

alex

02/03/2021, 7:28 PM
the way things work right now you cant bind config values during composition functions such as
@pipeline
, they are just for creating the graph structure. if you want to “bake” some config in to a solid, you can use
configured
https://docs.dagster.io/overview/configuration/configured#main
d

Dylan Bienstock

02/03/2021, 7:29 PM
@alex Thank you for sharing this!