# Max running time

**URL:** <https://discourse.nodered.org/t/max-running-time/3004>\
**Category:** General\
**Created:** [10 September 2018 09:22 UTC](https://discourse.nodered.org/t/max-running-time/3004 "2018-09-10T09:22:46Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![b35b5dad43ea282b65d0](https://avatars.discourse-cdn.com/v4/letter/b/c68b51/32.png) [@b35b5dad43ea282b65d0](https://discourse.nodered.org/u/b35b5dad43ea282b65d0)\
**Post date:** [10 September 2018 09:22 UTC](https://discourse.nodered.org/t/max-running-time/3004/1 "2018-09-10T09:22:46Z")

</div>

Hello

Which node would you take to define a maximum running time for a actuator.  
For example a fan that is only allowed to tun maximum 30minutes and then he needs to make a pause for 1 hour.

---

<div class="post-metadata">

**Author:** ![hotNipi](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hotnipi/32/383_2.png) [@hotNipi](https://discourse.nodered.org/u/hotNipi)\
**Post date:** [10 September 2018 09:45 UTC](https://discourse.nodered.org/t/max-running-time/3004/2 "2018-09-10T09:45:54Z")

</div>

Search the **timeout** from flows [https://flows.nodered.org/?term=timeout&num\_pages=1](https://flows.nodered.org/?term=timeout&num_pages=1)  
They are different, so you need to experiment with them to see if they do what you need

---

<div class="post-metadata">

**Author:** ![b35b5dad43ea282b65d0](https://avatars.discourse-cdn.com/v4/letter/b/c68b51/32.png) [@b35b5dad43ea282b65d0](https://discourse.nodered.org/u/b35b5dad43ea282b65d0)\
**Post date:** [10 September 2018 09:50 UTC](https://discourse.nodered.org/t/max-running-time/3004/3 "2018-09-10T09:50:47Z")

</div>

Thanks.  
I'll check them out.

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [10 September 2018 10:50 UTC](https://discourse.nodered.org/t/max-running-time/3004/4 "2018-09-10T10:50:34Z")

</div>

If it would be a serious problem if it ran too long (overheating or similar) then don't forget that you will need a solution that survives a system restart.

---

<div class="post-metadata">

**Author:** ![hotNipi](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hotnipi/32/383_2.png) [@hotNipi](https://discourse.nodered.org/u/hotNipi)\
**Post date:** [10 September 2018 11:04 UTC](https://discourse.nodered.org/t/max-running-time/3004/5 "2018-09-10T11:04:53Z")

</div>

For safety reasons and to preserve your equipment:

1. If possible, never run "not yet completed" flow against real equipment.
2. Make your flow for testing stadium with relative short timers, that you can actually observe your system reliability.
3. Test all possible conditions you can imagine
4. Test one more day
5. Test one more day
6. Rest
7. Test one more day
8. Start thinking to switch over to real equipment
9. Test
10. Switch over to real equipment (and pray if your equipment costs more than you have in pocket)

🙂

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [10 September 2018 21:34 UTC](https://discourse.nodered.org/t/max-running-time/3004/6 "2018-09-10T21:34:09Z")

</div>

And if a fail would be really expensive. Make sure you have at least one redundant system and make everything fail safe.

---

<div class="post-metadata">

**Author:** ![craigcurtin](https://avatars.discourse-cdn.com/v4/letter/c/94ad74/32.png) [@craigcurtin](https://discourse.nodered.org/u/craigcurtin)\
**Post date:** [10 September 2018 23:52 UTC](https://discourse.nodered.org/t/max-running-time/3004/7 "2018-09-10T23:52:25Z")

</div>

Check out the mytimeout node - it will do what you want. (Taking into account all the stuff the guys above have said)

Craig

---

<div class="post-metadata">

**Author:** ![b35b5dad43ea282b65d0](https://avatars.discourse-cdn.com/v4/letter/b/c68b51/32.png) [@b35b5dad43ea282b65d0](https://discourse.nodered.org/u/b35b5dad43ea282b65d0)\
**Post date:** [11 September 2018 09:39 UTC](https://discourse.nodered.org/t/max-running-time/3004/8 "2018-09-11T09:39:11Z")

</div>

I'll test every part before I change to the real equipment.  
mytimeout I'm going to check this evening.
