Is it possible to call a function within a function inside a Gateway timer script? I can run the same script in the script console, but in the gateway timer, I get the error “global name ‘doThis’ not defined”.
def doThis(): *dosomething* def startProcess(arg1): *dosomestuff* doThis arg1 = "something" startProcess(arg1)
I’m utilizing the threading module to split apart an internal pinging monitor (InetAddress) into separate “workers” since most of the processing is waiting for ping responses (and not cpu intensive). In the script console, I successfully took a 37 second run time to 5 seconds getting all ping response into in a dataset. I would like to run this on a Gateway Timer Script to run every so often as needed.