# Flow not executing completely

**URL:** <https://community.homey.app/t/flow-not-executing-completely/118383>\
**Category:** Questions & Help\
**Tags:** flow, homey-pro, advancedflow\
**Created:** [October 17, 2024, 9:53am UTC](https://community.homey.app/t/flow-not-executing-completely/118383 "2024-10-17T09:53:13Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ricercar](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ricercar/32/101928_2.png) [@ricercar](https://community.homey.app/u/ricercar)\
**Post date:** [October 17, 2024, 9:53am UTC](https://community.homey.app/t/flow-not-executing-completely/118383/1 "2024-10-17T09:53:13Z")

</div>

Hello,  
I have a flow that doesn’t execute till the end in this configuration where the last 2 cards are called twice

 ![Capture d'écran 2024-10-17 113104](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/e/c/ecae53a1218d44fc29779f48c15d5746e523e503.png)  
I checked the syslog to be sure that the 2 last cards aren’t executed twice as they should be.  
…the flow ends correctly however if I delete the first link to the 2 last cards  
 ![Capture d'écran 2024-10-17 113238](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/8/2/825ea5ed7ecefd8395dc4822d0538e7560f1a507.png)

What am I missing ?

---

<div class="post-metadata">

**Author:** ![SunBeech](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/sunbeech/32/111391_2.png) [@SunBeech](https://community.homey.app/u/SunBeech)\
**Post date:** [October 17, 2024, 9:58am UTC](https://community.homey.app/t/flow-not-executing-completely/118383/2 "2024-10-17T09:58:55Z")

</div>

My understanding is that within a flow, a card is always executed only once. If you have multiple connections to a subsequent card, then whichever preceding card comes first ‘wins’. The others are ignored.

If you want both conditions of the preceding cards to be met, you could use an ALL join.

---

<div class="post-metadata">

**Author:** ![ricercar](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ricercar/32/101928_2.png) [@ricercar](https://community.homey.app/u/ricercar)\
**Post date:** [October 17, 2024, 10:41am UTC](https://community.homey.app/t/flow-not-executing-completely/118383/3 "2024-10-17T10:41:26Z")

</div>

This explains that.  
I was not aware of this oddity (why the hell ?)  
Thanks for the tip 🙏

---

<div class="post-metadata">

**Author:** ![JPe4619](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jpe4619/32/9017_2.png) [@JPe4619](https://community.homey.app/u/JPe4619)\
**Post date:** [October 17, 2024, 5:18pm UTC](https://community.homey.app/t/flow-not-executing-completely/118383/4 "2024-10-17T17:18:20Z")

</div>

All or Any ?

---

<div class="post-metadata">

**Author:** ![SunBeech](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/sunbeech/32/111391_2.png) [@SunBeech](https://community.homey.app/u/SunBeech)\
**Post date:** [October 17, 2024, 6:07pm UTC](https://community.homey.app/t/flow-not-executing-completely/118383/5 "2024-10-17T18:07:05Z")

</div>

If you want Homey to wait for executing the next card that has multiple inputs, then you would put an ALL join in front of that card.

If you want Homey to start executing the next card that has multiple inputs, when any of the inputs arrive, then you would use an ANY join. Or just leave the ANY join out, as waiting for the the first input to arrive is the default behavior.
