# Can a second copy of a script be started before the original copy completes?

**URL:** <https://forum.inductiveautomation.com/t/can-a-second-copy-of-a-script-be-started-before-the-original-copy-completes/100972>\
**Category:** Ignition\
**Created:** [January 16, 2025, 3:04pm UTC](https://forum.inductiveautomation.com/t/can-a-second-copy-of-a-script-be-started-before-the-original-copy-completes/100972 "2025-01-16T15:04:03Z")\
**Posts on this page:** 1\
**Showing post:** 9

<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:** [January 16, 2025, 3:49pm UTC](https://forum.inductiveautomation.com/t/can-a-second-copy-of-a-script-be-started-before-the-original-copy-completes/100972/9 "2025-01-16T15:49:13Z")

</div>

Basic procedure to use if converting a TG to a script:

> [@AWT-EventQueue-0 Problems](https://forum.inductiveautomation.com/t/awt-eventqueue-0-problems/80128/6):
>
> Any transaction group that records to a DB can be replaced by a script that performs the following: Call system.tag.readBlocking() with a list of needed tags, and/or call system.opc.readValues() with a list of needed OPC Items (or both), Perform any arithmetic necessary for expression items using the above values, Execute system.db.runPrepUpdate() call to INSERT or UPDATE into the database, Perform any writes to handshake tag(s), if applicable. (Many more possibilities than the simp…

---

_[View the full topic](https://forum.inductiveautomation.com/t/can-a-second-copy-of-a-script-be-started-before-the-original-copy-completes/100972)._
