Infinite loop inside the client timer script

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!

You could, but don’t. :wink:

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.