# Gateway Timer script stopped

**URL:** <https://forum.inductiveautomation.com/t/gateway-timer-script-stopped/18729>\
**Category:** Ignition\
**Tags:** ignition78, ignition79\
**Created:** [July 5, 2018, 1:36pm UTC](https://forum.inductiveautomation.com/t/gateway-timer-script-stopped/18729 "2018-07-05T13:36:13Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![oisin.gribben](https://avatars.discourse-cdn.com/v4/letter/o/9d8465/32.png) [@oisin.gribben](https://forum.inductiveautomation.com/u/oisin.gribben)\
**Post date:** [July 5, 2018, 1:36pm UTC](https://forum.inductiveautomation.com/t/gateway-timer-script-stopped/18729/1 "2018-07-05T13:36:13Z")

</div>

Hi,  
I have a few gateway timer scripts that run every few seconds.  
After around 10-15 minutes of running, some scripts stop executing.  
When restarted they continue as usual until they freeze again.  
The 2 scripts affected are the ‘writetoOPC’ and ‘multistate’ scripts  
See attached image below.

 ![](https://us1.discourse-cdn.com/inductiveautomation/original/2X/8/8169f0ed8615095a6520d20da804a1c8dcd2c9f9.png)

---

<div class="post-metadata">

**Author:** ![brandon1](https://avatars.discourse-cdn.com/v4/letter/b/ea666f/32.png) [@brandon1](https://forum.inductiveautomation.com/u/brandon1)\
**Post date:** [July 5, 2018, 1:44pm UTC](https://forum.inductiveautomation.com/t/gateway-timer-script-stopped/18729/2 "2018-07-05T13:44:57Z")

</div>

Any error messages on the console related to the script execution?

---

<div class="post-metadata">

**Author:** ![oisin.gribben](https://avatars.discourse-cdn.com/v4/letter/o/9d8465/32.png) [@oisin.gribben](https://forum.inductiveautomation.com/u/oisin.gribben)\
**Post date:** [July 5, 2018, 2:06pm UTC](https://forum.inductiveautomation.com/t/gateway-timer-script-stopped/18729/3 "2018-07-05T14:06:27Z")

</div>

Hi,  
There are no errors appearing. The status also stays as success the whole time.

---

<div class="post-metadata">

**Author:** ![brandon1](https://avatars.discourse-cdn.com/v4/letter/b/ea666f/32.png) [@brandon1](https://forum.inductiveautomation.com/u/brandon1)\
**Post date:** [July 5, 2018, 2:35pm UTC](https://forum.inductiveautomation.com/t/gateway-timer-script-stopped/18729/4 "2018-07-05T14:35:39Z")

</div>

Without seeing your code, I do not know what the problem might be.

---

<div class="post-metadata">

**Author:** ![oisin.gribben](https://avatars.discourse-cdn.com/v4/letter/o/9d8465/32.png) [@oisin.gribben](https://forum.inductiveautomation.com/u/oisin.gribben)\
**Post date:** [July 5, 2018, 3:21pm UTC](https://forum.inductiveautomation.com/t/gateway-timer-script-stopped/18729/5 "2018-07-05T15:21:11Z")

</div>

I figured out the issue. When I changed the scripts to fixed rate the freeze stopped happening.

---

<div class="post-metadata">

**Author:** ![Sanket](https://avatars.discourse-cdn.com/v4/letter/s/57b2e6/32.png) [@Sanket](https://forum.inductiveautomation.com/u/Sanket)\
**Post date:** [February 2, 2022, 3:05am UTC](https://forum.inductiveautomation.com/t/gateway-timer-script-stopped/18729/6 "2022-02-02T03:05:12Z")

</div>

Hello,  
@oisin.gribben - I am also facing the same issue in ignition version 8.0.15.

I have not tried with the option of “fixed rate” delay type. But, my concern is why the default settings provided (“Delay type - fixed delay” and “Threading - Shared”) are not working well. Because script execution rate is much higher than the duration time of actual execution and no error in script logs as well as script shows success in gateway script status page.

If, anyone has more detail option please share and give your opinions.

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![kvane](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kvane/32/22228_2.png) [@kvane](https://forum.inductiveautomation.com/u/kvane)\
**Post date:** [February 2, 2022, 7:44pm UTC](https://forum.inductiveautomation.com/t/gateway-timer-script-stopped/18729/7 "2022-02-02T19:44:47Z")

</div>

The original poster was on a version prior to 8. There have been many performance improvements and bug fixes since then. We would highly recommend upgrading to 8.1 if possible, and if you still experience issues consider contacting our support department: [Support Home Page | Inductive Automation](https://inductiveautomation.com/support/home/)
