# Gateway Event scripts

**URL:** <https://forum.inductiveautomation.com/t/gateway-event-scripts/22327>\
**Category:** General Discussion\
**Created:** [February 4, 2019, 5:30pm UTC](https://forum.inductiveautomation.com/t/gateway-event-scripts/22327 "2019-02-04T17:30:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![patrick.garceau](https://avatars.discourse-cdn.com/v4/letter/p/76d3ee/32.png) [@patrick.garceau](https://forum.inductiveautomation.com/u/patrick.garceau)\
**Post date:** [February 4, 2019, 5:30pm UTC](https://forum.inductiveautomation.com/t/gateway-event-scripts/22327/1 "2019-02-04T17:30:30Z")

</div>

I need to know how the Gateway Events scripts gets triggered,

So, If I have a script that execute every 5 min, and sometimes, the runtime is lets say 6min, would that cause the script to run twice in memory or it wait for the other instance to finish before executing another one.

Need to make sure that they don’t run more than once at a time.

Thanks a lot.

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [February 4, 2019, 5:41pm UTC](https://forum.inductiveautomation.com/t/gateway-event-scripts/22327/2 "2019-02-04T17:41:40Z")

</div>

Is this a Gateway Timer Script?

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [February 4, 2019, 5:46pm UTC](https://forum.inductiveautomation.com/t/gateway-event-scripts/22327/3 "2019-02-04T17:46:06Z")

</div>

This is [documented](https://docs.inductiveautomation.com/display/DOC79/Client+and+Gateway+Event+Scripts#ClientandGatewayEventScripts-TimerScripts) – tl;dr: no, it won’t start another event while one is running.
