Ryan
01/11/2021, 4:30 PM@solid
decorator multiple times and having it "just work"? From what I can see it seems like subsequent applications override the first, or something else prevents them from working together.
Use-case: we have certain config we want to apply to many solids which is standardised, but a bit verbose to type out every time (e.g. OutputDefinitions). We'd like to wrap it all into our own, standard decorator, which would apply some @solid
config, but then we should also be able to add to that on a solid-by-solid basis when needed with an additional @solid
decoration.Gregory (Tengu)
01/11/2021, 4:38 PMsandy
01/11/2021, 5:07 PMRyan
01/12/2021, 12:08 PMconfig_schema
, i.e. arguments to the underlying compute function.
Ended up going with something closer to Gregory's solid factory suggestion 👍🏼 In our case it ended up looking like a thin wrapper decorator around the main @solid
decorator itself, that just adds our standard configs to any arguments it may receive before passing everything through to Dagster to handle as normal.