cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
lavint
Helper I
Helper I

Can someone please explain Parallel branch?

How does Parallel branch work? Does it run each step on the left side and the right side in parallel?

Like, the 2nd action on the right side is completed but won't move on until the 2nd action on the right side is also completed? 

 

Thanks

8 REPLIES 8

HI @lavint yes you've pretty much got the grasp of it. It's effectively two parts of the process which can be run at the same time, so if they don't have a dependency on each other, then you can run them in parralel. You can then bring the two parallel legs back together to continue the process in serial.

 

The main advantage of doing this are that you can make your Flow uber efficient if you can get elements working in parallel. Just bare in mind that if you call a Terminate on either side of parallel runs, then it will terminate the entire Flow.

 

I tend to use parallel legs for when I'm initialising all my variables at the start. Rather than having 4 variables running in serial, I'll do them in parallel so that it makes my Flow look tidier, but also I'm sure it'll shave a few millionths of a second off the run time too 🙂

so my question is,

 

If there is 10 activities on the left side and 2 activities on the right side.

Timing wise, how does it work? Can the left side finished 10 activities while the right side still in 1?

Yes, the left side can still be processing while the right side is waiting, and the Flow won't continue until both legs have fully executed.

The timing of the two threads (left and right) are completely independent of each other.  It processes each set in whatever time it takes.  The second step in the right path doesn't wait for the first step in the left path to complete.  It only waits for the step above it.  so which one finishes first depends on how long the steps take, not on how many steps there are.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

I may have caused some confusion with the way I explain it so I've created a Flow to demo

 

Parallel.PNG

 

Delay 1 takes 1 minute

Delay 2 takes 2 minnutes

 

Initialize variable will not run until both Delay 1 and Delay 2 have completed

It wasn't so much your explanation as something that @lavint said in his question where he implied that the two sides took turns running actions.  I wanted to make sure he understood that they were completely independent of each other until they were both finished.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Super helpful.  I'm running a flow with simultaneous Approvals on it (so one isn't held up by the other), but I wasn't sure if each branch would move onto the next step independently or if it would wait for both branches to be complete.

 

Fears allayed! 🙂

If the next step is in the parallel branch then it will move on.  If the next step brings the parallel branches together it will wait for all branches to complete.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Helpful resources

Announcements
Power Automate News & Announcements

Power Automate News & Announcements

Keep up to date with current events and community announcements in the Power Automate community.

Community Calls Conversations

Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Automate Community Blog

Power Automate Community Blog

Check out the latest Community Blog from the community!

Users online (5,619)