# Tag change script thread mode

**URL:** <https://forum.inductiveautomation.com/t/tag-change-script-thread-mode/47333>\
**Category:** Ignition\
**Created:** [June 2, 2021, 12:38am UTC](https://forum.inductiveautomation.com/t/tag-change-script-thread-mode/47333 "2021-06-02T00:38:04Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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:** [June 2, 2021, 12:48am UTC](https://forum.inductiveautomation.com/t/tag-change-script-thread-mode/47333/2 "2021-06-02T00:48:50Z")

</div>

1. There is a single thread pool for all tag events. Three threads by default, IIRC. Can be set at gateway startup with an additional java param in ignition.conf, but I don’t recall the precise syntax.

2. Events that come in while a prior event is still running are queued. If the script doesn’t “catch up”, excess events are lost. The queue is five per tag, IIRC. I don’t think that can be changed.

If you need more reliable events for specific tags, use a gateway tag change event in a project, not a tag event on the tag itself. Different thread pool, unlimited queue, and other threading options. Naturally, unlimited queuing on a run-away script can yield other problems.

---

_[View the full topic](https://forum.inductiveautomation.com/t/tag-change-script-thread-mode/47333)._
