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
The Benthos provided processor Workflow executes a DAG of Nodes, "performing them in parallel where possible".
However the current implementation uses this dependency solver and it takes the approach: resolve the DAG into series of steps where the steps are performed sequentially but the nodes in the step are performed in parallel.
This means that there can be a situation where a step could be waiting for all the nodes in the previous step: even though all dependencies for the step are ready.
Consider the following DAG, from the workflow processor docs:
/--> B -------------|--> D
/ /
A --| /--> E --|
\--> C --| \
\----------|--> F
The dependency solver would resolve the DAG into: [ [ A ], [ B, C ], [ E ], [ D, F ] ].
When we consider the node E, we can see the that full dependency of this node would be : A -> C -> E, however in the stage before [ E ], there is the node B so in the current Benthos Workflow implementation E would not execute until B even though there is no dependency of B for E.
The text was updated successfully, but these errors were encountered:
Issue Description
The Benthos provided processor Workflow executes a DAG of Nodes, "performing them in parallel where possible".
However the current implementation uses this dependency solver and it takes the approach: resolve the DAG into series of steps where the steps are performed sequentially but the nodes in the step are performed in parallel.
This means that there can be a situation where a step could be waiting for all the nodes in the previous step: even though all dependencies for the step are ready.
Consider the following DAG, from the workflow processor docs:
The dependency solver would resolve the DAG into:
[ [ A ], [ B, C ], [ E ], [ D, F ] ]
.When we consider the node E, we can see the that full dependency of this node would be :
A -> C -> E
, however in the stage before[ E ]
, there is the node B so in the current Benthos Workflow implementation E would not execute until B even though there is no dependency of B for E.The text was updated successfully, but these errors were encountered: