# A flow has been disabled, because the Flow executed too many times

**URL:** <https://community.homey.app/t/a-flow-has-been-disabled-because-the-flow-executed-too-many-times/82036>\
**Category:** Flows\
**Created:** [June 9, 2023, 8:49pm UTC](https://community.homey.app/t/a-flow-has-been-disabled-because-the-flow-executed-too-many-times/82036 "2023-06-09T20:49:04Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jumeira](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jumeira/32/69412_2.png) [@Jumeira](https://community.homey.app/u/Jumeira)\
**Post date:** [June 9, 2023, 8:49pm UTC](https://community.homey.app/t/a-flow-has-been-disabled-because-the-flow-executed-too-many-times/82036/1 "2023-06-09T20:49:04Z")

</div>

This particular flow runs with a notification on certain time early morning, I only receive 1 notification and thats not too many! I tried this flow on advanced and normal, still facing same issue!

---

<div class="post-metadata">

**Author:** ![Ranney](https://avatars.discourse-cdn.com/v4/letter/r/848f3c/32.png) [@Ranney](https://community.homey.app/u/Ranney)\
**Post date:** [June 9, 2023, 10:07pm UTC](https://community.homey.app/t/a-flow-has-been-disabled-because-the-flow-executed-too-many-times/82036/2 "2023-06-09T22:07:06Z")

</div>

Can you share the flow / give more info? Normally, this message means that the flow is triggered very often in a short time.

---

<div class="post-metadata">

**Author:** ![Jumeira](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jumeira/32/69412_2.png) [@Jumeira](https://community.homey.app/u/Jumeira)\
**Post date:** [June 11, 2023, 4:19pm UTC](https://community.homey.app/t/a-flow-has-been-disabled-because-the-flow-executed-too-many-times/82036/3 "2023-06-11T16:19:56Z")

</div>

The app acts as alarm timer for 5 times a day, the timing will be different based on country location, the issue is related with early morning alarm which caused homey to disable the entire flow! I erased this particular flow and kept the 4 other flows but homey act as this flow still exists! In the 2nd image the early morning flow is deleted!

I re enable the flow every day now.

 ![IMG_1FDB033B21FC-1](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/8/b/8b027fd64eda6b89f0ba8e14134e6cf58834cd89.jpeg)

 ![noti](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/6/a/6ae25c8fb786327bfab7ff85d1576f3c5f1f51b6.jpeg)

---

<div class="post-metadata">

**Author:** ![Ranney](https://avatars.discourse-cdn.com/v4/letter/r/848f3c/32.png) [@Ranney](https://community.homey.app/u/Ranney)\
**Post date:** [June 11, 2023, 9:05pm UTC](https://community.homey.app/t/a-flow-has-been-disabled-because-the-flow-executed-too-many-times/82036/4 "2023-06-11T21:05:06Z")

</div>

Hmm. Maybe an idea to install Syslog and let it log every time a trigger occurs (and the name of it). From then you can see how many times it is triggered (and how often). I think that that would be a good start to troubleshoot.

---

<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:** [June 12, 2023, 3:02am UTC](https://community.homey.app/t/a-flow-has-been-disabled-because-the-flow-executed-too-many-times/82036/5 "2023-06-12T03:02:02Z")

</div>

It’s an odd phenomenon I can tell.

I’d like to suggest to start reading this post (from Athom tech @Jero Jeroen), and the posts below it

> [@\[Timeline\] Flow disabled because it runs 60 times](https://community.homey.app/t/timeline-flow-disabled-because-it-runs-60-times/66238/25):
>
> It means the code thats runs the Flow did not exit properly. The code looks something like this: count++; try { const result = await this.run(args); return result; } catch (error) { throw error; } finally { // This block always executes. count--; } This can be triggered easily if you have a Flow that triggers every second that starts a delay for 120 seconds for example. On the 61th time the previous executions are not done yet so to prevent this ‘leak’ going on forever we disable the…

.  
An idea for now: try to split your Adv. flow to 4 separate Adv flows to see it changes anything.  
I also want to suggest to [inform the app creator](https://github.com/DPANET/PrayersHomeySDK3/issues) about this.

---

<div class="post-metadata">

**Author:** ![Jumeira](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jumeira/32/69412_2.png) [@Jumeira](https://community.homey.app/u/Jumeira)\
**Post date:** [June 29, 2023, 9:50pm UTC](https://community.homey.app/t/a-flow-has-been-disabled-because-the-flow-executed-too-many-times/82036/6 "2023-06-29T21:50:37Z")

</div>

I didn’t edit the flow or did anything to it, now its working just fine since 5 days! Strange things do happen from time to time, for example i started noticing the sunrise flow to switch off some lights and open the curtains stopped working for no reason, i replaced the first card with sun events app and got them working again.

---

<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:** [June 30, 2023, 12:09am UTC](https://community.homey.app/t/a-flow-has-been-disabled-because-the-flow-executed-too-many-times/82036/7 "2023-06-30T00:09:30Z")

</div>

> [@Jumeira](#):
>
> the sunrise flow to switch off some lights and open the curtains stopped working for no reason

That’s not your Homey only.  
There seems to be an issue with the sunrise card atm
