# Infinite loop inside the client timer script

**URL:** <https://forum.inductiveautomation.com/t/infinite-loop-inside-the-client-timer-script/10180>\
**Category:** Ignition\
**Created:** [June 29, 2015, 7:09am UTC](https://forum.inductiveautomation.com/t/infinite-loop-inside-the-client-timer-script/10180 "2015-06-29T07:09:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ella\_ramos](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/ella_ramos/32/3455_2.png) [@ella\_ramos](https://forum.inductiveautomation.com/u/ella_ramos)\
**Post date:** [June 29, 2015, 7:09am UTC](https://forum.inductiveautomation.com/t/infinite-loop-inside-the-client-timer-script/10180/1 "2015-06-29T07:09:08Z")

</div>

Is it possible to have infinite loop inside a client timer script?  
this will be the sample code under the client timer script.

`while 1:
          check status of tool and insert to database`

and i will have a client timer script that will run every 1,000ms.

Thanks!

---

<div class="post-metadata">

**Author:** ![JordanCClark](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jordancclark/32/83362_2.png) [@JordanCClark](https://forum.inductiveautomation.com/u/JordanCClark)\
**Post date:** [June 29, 2015, 9:41am UTC](https://forum.inductiveautomation.com/t/infinite-loop-inside-the-client-timer-script/10180/2 "2015-06-29T09:41:30Z")

</div>

You could, but don’t. 😉

The thread will never terminate. In 1000 ms another thread will be spawned. Now you have two threads that will never terminate. And this will keep going until it crashes.
