# Execution queue not in same order as in flow

**URL:** <https://community.homey.app/t/execution-queue-not-in-same-order-as-in-flow/62371>\
**Category:** Flows\
**Tags:** flow, homey-pro\
**Created:** [April 5, 2022, 7:19pm UTC](https://community.homey.app/t/execution-queue-not-in-same-order-as-in-flow/62371 "2022-04-05T19:19:04Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [April 5, 2022, 9:07pm UTC](https://community.homey.app/t/execution-queue-not-in-same-order-as-in-flow/62371/4 "2022-04-05T21:07:34Z")

</div>

Yes, unfortunately all action cards are fired kind of asynchronous, but not always (read [this interesting thread](https://community.homey.app/t/question-making-a-set-of-flows-that-trigger-other-flows-quicker/61593/5) )  
An idea is, consider starting separating some flows and flowcards.  
Your shared flow I call Flow1 in this example.  
Then you can split that flow up to:  
Flow1A  
If…  
this flow is started  
And…  
logic [fun] is No  
Then…  
switch off all lights  
start Flow1B after 1s  
set logic [fun] to Yes  
Else…  
turn all lights off  
turn all plugs off  
set logic [fun] to No

Flow1B  
If…  
this flow is started  
Then…  
turn all Wohnzimmer Stehlampen on  
Dim all Stehlampe to 65% after 1s  
start flow 1c after 2s

Flow1C  
If…  
this flow is started  
Then…  
… the rest of the other action cards  
set logic [fun] to Yes

---

_[View the full topic](https://community.homey.app/t/execution-queue-not-in-same-order-as-in-flow/62371)._
