# Scheduled Gateway Scripts

**URL:** <https://forum.inductiveautomation.com/t/scheduled-gateway-scripts/85453>\
**Category:** Ignition\
**Created:** [February 8, 2024, 5:43pm UTC](https://forum.inductiveautomation.com/t/scheduled-gateway-scripts/85453 "2024-02-08T17:43:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jonathan](https://avatars.discourse-cdn.com/v4/letter/j/aeb1de/32.png) [@Jonathan](https://forum.inductiveautomation.com/u/Jonathan)\
**Post date:** [February 8, 2024, 5:43pm UTC](https://forum.inductiveautomation.com/t/scheduled-gateway-scripts/85453/1 "2024-02-08T17:43:58Z")

</div>

Do scheduled gateway scripts start their own thread? What happens when the scheduled script takes longer than the time between the next scheduled time? Why doesn't the scheduled gateway script have the same settings as the timer script Shared/Dedicated. Can you cancel a running scheduled gateway 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 8, 2024, 5:45pm UTC](https://forum.inductiveautomation.com/t/scheduled-gateway-scripts/85453/2 "2024-02-08T17:45:16Z")

</div>

One thread, at most. Running too long delays the next execution.

You should be able to cancel from the gateway's script monitor.

---

<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 8, 2024, 5:46pm UTC](https://forum.inductiveautomation.com/t/scheduled-gateway-scripts/85453/3 "2024-02-08T17:46:44Z")

</div>

> [@Jonathan](#):
>
> Do scheduled gateway scripts start their own thread?

They are executed on their own thread obtained from a thread pool.

> [@Jonathan](#):
>
> What happens when the scheduled script takes longer than the time between the next scheduled time?

Next one doesn't run until the current one finishes. Executions queue up.

> [@Jonathan](#):
>
> Why doesn't the scheduled gateway script have the same settings as the timer script Shared/Dedicated.

Not needed, it's effectively always dedicated.
