Andrew Herbst
04/02/2021, 5:13 PMcollect index unexpectedly set twice
. So, we’ve introduced an intermediate “fan-in” solid on both branches that collects the results and then hands those off to the downstream post-processing solid. My question: is this a known issue and is the notion of introducing the intermediate fan-in solid the correct approach here?alex
04/02/2021, 5:17 PMAndrew Herbst
04/02/2021, 5:27 PM@solid(
output_defs=[DynamicOutputDefinition(int)]
)
def fan_out(_):
for i in range(1, 10):
yield DynamicOutput(value=i, mapping_key=i)
@solid
def post_process(_, fan_in1: list[int], fan_in2: list[int]):
pass
@pipeline
def dynamic_example() -> None:
fan_out1 = fan_out()
fan_out2 = fan_out()
post_process(fan_out1.collect(), fan_out2.collect())
alex
04/02/2021, 6:08 PMAndrew Herbst
04/02/2021, 6:12 PM