Ryan01/11/2021, 4:30 PM
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
config, but then we should also be able to add to that on a solid-by-solid basis when needed with an additional
Gregory (Tengu)01/11/2021, 4:38 PM
sandy01/11/2021, 5:07 PM
Ryan01/12/2021, 12:08 PM
, 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
decorator itself, that just adds our standard configs to any arguments it may receive before passing everything through to Dagster to handle as normal.