Node execution order / wait for both inputs before node execution

Hello,
I wonder if we can control the node execution order or block the execution of a node if both inputs are not started.

Use case:
I am using $node[‘SomeNodeToBeTriggeredBefore’] inside a Actual Function node.

If SomeNodeToBeTriggeredBefore is not triggered before the Actual node will fail since $node[‘SomeNodeToBeTriggeredBefore’] is not defined.

How to be ensure this ?

I read this but I am not convinced about in the order of what you connected first.

The way we built work flow is not the way we want it executed :slight_smile:

Hey @Thomas_Pedot,

Best I can think of at the moment would be to use a merge node with the wait option, The other more complicated option would be to redesign the workflow and maybe use sub workflows that you call where you need them.

Being able to specify a run order seems like a solid feature request though.

Hello,
I am not sure the wait function will work since I understand that the workflow is not executed in parallel ?

I consider reorganizing my workflow for now.

Without implementing something heavy, at least having kind of visual number on whennodes will be executed first in the UI would help without running the workflow.

1 Like

So the wait node would sit there until both inputs have data so if it runs the top part first it would wait for the second one to finish as well before starting it does involve having to reshuffle things.

I find that using sub workflows was the best solution for me but it isn’t always ideal.