https://dagster.io/ logo
#ask-community
Title
# ask-community
s

Son Giang

04/25/2022, 7:52 AM
Hey team, what is the best way to pass output of an op to all downstream ops? If I put it into every input of downstream ops, the graph will be very messy. Do we have any ways to put it in global config/context of all the ops?
c

chris

04/25/2022, 1:44 PM
One thing you could do to make it look a little more clean is put all of the downstream ops in a subgraph, and then pass the input to the subgraph. But fundementally, if an op depends on the output of another op, dagster will always expect you to explicitly express that dependency
m

Mark Fickett

04/26/2022, 2:02 PM
Just chiming in to say I'd find this useful as well. I tried using a
@resource
but since that's re-evaluated for each
@op
/ process, it doesn't work well. I ended up using external storage so I didn't have to add an extra input to every downstream op.
c

chris

04/26/2022, 3:05 PM
Given the interest here, created https://github.com/dagster-io/dagster/issues/7581 to track. Feel free to upvote / comment any suggestions
ty thankyou 1
3 Views