You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
where B takes 5 seconds to run, C takes 2 seconds, and D takes 2 seconds. (i used timeout inside the nodes)
I expect the graph to run in 5 seconds, because I thought C and D can run in parallel while B is running (2+2 < 5 seconds).
However, in practice, it takes 7 seconds. B and C runs in parallel, but C waits for B to finish before moving into D.
NODE: In Node A (6ms elapsed)
NODE: In Node B (8ms elapsed)
NODE: In Node C (8ms elapsed)
NODE: In Node D (5016ms elapsed)
NODE: In Node E (7023ms elapsed)
RESULT { messages: [ 'A', 'B', 'C', 'D', 'E' ], startTime: 1735541316193 }
How do I make sure D does not wait for B to finish? I assumed this could be solved using subgraphs but I want to check if there's a more elegant solution than building a subgraph.
The text was updated successfully, but these errors were encountered:
I have this graph:
where B takes 5 seconds to run, C takes 2 seconds, and D takes 2 seconds. (i used timeout inside the nodes)
I expect the graph to run in 5 seconds, because I thought C and D can run in parallel while B is running (2+2 < 5 seconds).
However, in practice, it takes 7 seconds. B and C runs in parallel, but C waits for B to finish before moving into D.
Here's how I built the graph:
Here's the result:
How do I make sure D does not wait for B to finish? I assumed this could be solved using subgraphs but I want to check if there's a more elegant solution than building a subgraph.
The text was updated successfully, but these errors were encountered: