I want to schedule a DAG of tasks, where the source and sink of the dag must be in the same task.
So the source/sink task spawns the childs of the source and block-waits for the result (somehow).
/ | \\
t2 t3 t4
| \\ | |
| t5 |
t7 \\ |
I would like to use contuniations for everything but the sink (which as said needs to block-wait as sink and source must be in the same task). Using a continuation is easy, when 2 tasks have only one successor
(e.g. t4 and t5 must execute before t6) so t6 is a continuation with t4 and t5 as childs.
I have no idea how to setup the continuations when there are multiple successors, e.g.
t5 is successor of t2 and t3. additionally, t7 is successor of t2.
Do I have to allocate t2 twice as child (doesn't make any sense).