Hi team, I have a doubt regarding composite solids...
# announcements
r
Hi team, I have a doubt regarding composite solids. I want to call the same composite solid from within a pipeline twice with different inputs for a specific solid within the composite, how can I do that programatically?
What I was thinking is to add config schema to the composite and then use it as a configured solid, but not sure if this is the best approach or if it can be done at all
s
By different inputs, do you mean different dependencies? Or a different value for a particular input?
r
A different value for a particular input, what I've ended up doing is to use config_schema and config_fn to map composite solid schema to the solids config schema within the composite
s
If you are specifying the input values via config, you can provide separate config either directly or through the config mapping function as you describe.
r
Thanks! And a last question 🙂 do you have a preferred choice?
s
I think it depends on your situation!
Oh and to be clear the inputs would be done via the input mapping facility. You can declare inputs on composites and thread them to the appropriate solid in the composition function
r
Ah so it's basically the same mechanism as with config, that's good to know, because I tried and did not work before since I did not add the input mapping
Thanks a lot, really fan of Dagster so far! 🙂