steep-nest-3156
02/05/2025, 3:25 PMdef producer() -> Iterator[str]:
yield "hello"
sleep(10)
yield "world"
yield "!"
• Mapper processes each item as it arrives:
def mapper(s: str) -> str:
return s.upper()
• Reducer aggregates the transformed results:
def reducer(l: Iterable[str]) -> str:
return ' '.join(l)
Does Flyte support (or plan to support) this kind of streaming execution, where tasks can process data as it becomes available? Or do all tasks need to fully complete before the next one starts?
Thanks in advance!careful-australia-19356
02/05/2025, 4:56 PMsteep-nest-3156
02/06/2025, 3:12 PM