# system.util.getGlobals() not persisted across Designer Save

**URL:** <https://forum.inductiveautomation.com/t/system-util-getglobals-not-persisted-across-designer-save/33869>\
**Category:** Ignition\
**Created:** [April 12, 2020, 12:59am UTC](https://forum.inductiveautomation.com/t/system-util-getglobals-not-persisted-across-designer-save/33869 "2020-04-12T00:59:39Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![mark.sluser](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mark.sluser/32/19753_2.png) [@mark.sluser](https://forum.inductiveautomation.com/u/mark.sluser)\
**Post date:** [April 12, 2020, 4:44pm UTC](https://forum.inductiveautomation.com/t/system-util-getglobals-not-persisted-across-designer-save/33869/10 "2020-04-12T16:44:39Z")

</div>

Ignition doesn’t have a built in scheduler for script execution. I thought Ignition’s BasicExecutionEngine was a solution.

Creating a new BasicExecutionEngine object on each startup loses reference to the old one and the old reference was needed to shutdown the existing scheduled threads. Without the that reference there is no way to stop the old threads and so new threads are duplicated on each gateway restart causing duplicated execution and memory leaks.

My purpose in using getGlobals() was to save a reference to A BasicExecutionEngine as described in this post.

> [@Creating a BasicExecutionEngine schedule](http://forum.inductiveautomation.com/t/creating-a-basicexecutionengine-schedule/27297):
>
> I’m trying to use the BasicExecutionEngine to create a tasks schedule, but I’m having issues (doesn’t help my Java knowledge is lacking). @pturmel ([Does Ignition have schedule events?](http://forum.inductiveautomation.com/t/does-ignition-have-schedule-events/16899/4)) from java.lang import Runnable from com.inductiveautomation.ignition.common.execution.impl import BasicExecutionEngine class Task(Runnable): def run(self): print 'Hellooo' s = BasicExecutionEngine() s.schedule("task", Task, "0-59 \* \* \* \*") I’m receiving the error: Traceback (most recent call last): File…

If getGlobals() can’t save a reference to BasicExecutionEngine is there another way to schedule script execution ?

---

_[View the full topic](https://forum.inductiveautomation.com/t/system-util-getglobals-not-persisted-across-designer-save/33869)._
