Hi everyone, I am attempting to pass a config sche...
# announcements
d
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
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
@alex Thank you for sharing this!