# Is there a way to change the Gateway Event Script Timeout?

**URL:** <https://forum.inductiveautomation.com/t/is-there-a-way-to-change-the-gateway-event-script-timeout/94671>\
**Category:** Ignition\
**Tags:** ignition81, perspective, scripting\
**Created:** [August 14, 2024, 8:37pm UTC](https://forum.inductiveautomation.com/t/is-there-a-way-to-change-the-gateway-event-script-timeout/94671 "2024-08-14T20:37:58Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![codersmurf](https://avatars.discourse-cdn.com/v4/letter/c/df788c/32.png) [@codersmurf](https://forum.inductiveautomation.com/u/codersmurf)\
**Post date:** [August 14, 2024, 8:37pm UTC](https://forum.inductiveautomation.com/t/is-there-a-way-to-change-the-gateway-event-script-timeout/94671/1 "2024-08-14T20:37:58Z")

</div>

Is there anyway to change the gateways timeout on even scripts?Thx, jake

---

<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:** [August 14, 2024, 8:44pm UTC](https://forum.inductiveautomation.com/t/is-there-a-way-to-change-the-gateway-event-script-timeout/94671/2 "2024-08-14T20:44:08Z")

</div>

Gateway event scripts don't **have** a timeout. Please show the log message for what you think is a script timeout.

(There are multiple possibilities.)

---

<div class="post-metadata">

**Author:** ![codersmurf](https://avatars.discourse-cdn.com/v4/letter/c/df788c/32.png) [@codersmurf](https://forum.inductiveautomation.com/u/codersmurf)\
**Post date:** [August 14, 2024, 9:10pm UTC](https://forum.inductiveautomation.com/t/is-there-a-way-to-change-the-gateway-event-script-timeout/94671/3 "2024-08-14T21:10:41Z")

</div>

I'll post here when it runs again, I was getting no log events, but I know it runs a long time running the script command in the console. I added beg/end logs to see if I can at least get those.thx,jake

---

<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:** [August 14, 2024, 9:14pm UTC](https://forum.inductiveautomation.com/t/is-there-a-way-to-change-the-gateway-event-script-timeout/94671/4 "2024-08-14T21:14:20Z")

</div>

> [@codersmurf](#):
>
> script command in the console

Don't test gateway scripts from the designer. There is an unchangeable 60-second timeout on any request from designer (or vision client) to gateway scope. Use `system.util.sendMessage` to start something in the gateway and use logging (in the gateway) to see results.

---

<div class="post-metadata">

**Author:** ![codersmurf](https://avatars.discourse-cdn.com/v4/letter/c/df788c/32.png) [@codersmurf](https://forum.inductiveautomation.com/u/codersmurf)\
**Post date:** [August 15, 2024, 5:34pm UTC](https://forum.inductiveautomation.com/t/is-there-a-way-to-change-the-gateway-event-script-timeout/94671/5 "2024-08-15T17:34:50Z")

</div>

I actually have great success in the designer. Some of the scripts I assumed didn't run from timeout issues I run on the designer, cause it only works there. I can't even get this to log:

def AutoBot():  
logger = system.util.getLogger("AutoBot")  
logger.info('beg')

There's other scripts with identical code, minus the names, that do log in event scripts and in the designer. Kind of weird. No errors on the function in logs either.

---

<div class="post-metadata">

**Author:** ![codersmurf](https://avatars.discourse-cdn.com/v4/letter/c/df788c/32.png) [@codersmurf](https://forum.inductiveautomation.com/u/codersmurf)\
**Post date:** [August 27, 2024, 8:27pm UTC](https://forum.inductiveautomation.com/t/is-there-a-way-to-change-the-gateway-event-script-timeout/94671/6 "2024-08-27T20:27:43Z")

</div>

Anyone else have any thoughts on this?thx

---

<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:** [August 27, 2024, 8:33pm UTC](https://forum.inductiveautomation.com/t/is-there-a-way-to-change-the-gateway-event-script-timeout/94671/7 "2024-08-27T20:33:58Z")

</div>

Loggers are local to the JVM in which they are created. Designer script console is a local JVM with Vision client scope, and all of its loggers are local. Open your designer diagnostic (from the help menu) to inspect their output.

Logging that runs in gateway scope (including Perspective scope) will only show up in the gateway log, not in the designer.

See this:

> [@Event Configuration Print Out to debug](https://forum.inductiveautomation.com/t/event-configuration-print-out-to-debug/60091/5):
>
> It’s complicated slight_smile Starting from most local to least… In the script console, print will log directly to the output buffer on the right hand side. system.util.getLogger() will log to the named ‘Output Console’ Designer window. Bonus: A script invoked from here using system.util.invokeAsync will print to the regular output console, not the buffer on the right hand side. Anywhere else in the designer (except Perspective), print and system.util.getLogger will log to the ‘Out…

---

<div class="post-metadata">

**Author:** ![codersmurf](https://avatars.discourse-cdn.com/v4/letter/c/df788c/32.png) [@codersmurf](https://forum.inductiveautomation.com/u/codersmurf)\
**Post date:** [August 27, 2024, 9:11pm UTC](https://forum.inductiveautomation.com/t/is-there-a-way-to-change-the-gateway-event-script-timeout/94671/8 "2024-08-27T21:11:10Z")

</div>

gotcha, makes sense, and any to figure out why the cron isn't logging on the gateway
