I am trying to figure out how to parallelize nested loops with prefect, which require an inner fan out/in within the outer fan out/in.
If I use map() on the outer loop, then pass some of the results from outer loop calculations also using map() to inner loop in unmapped(), will this create an inner fan out? Then how do I do a "partial reduce" to use inner loop results in the outer loop?
A pointer or example would be much appreciated.