I’m trying to send out a report using a Gateway Event Script Timer. In the script that gets called from the timer I have a call to
system.util.setReadTimeout(6000000). If I call the script from say the script console in Designer it runs and I finally get an email with my report.
But looking at the wrapper.log file I see an exception for the timer:
`AttributeError: ‘com.inductiveautomation.ignition.common.script.Imm’ object has no attribute 'setReadTimeout’
For some reason the Gateway timer won’t work but seems to work elsewhere.
Also, the ridiculously high timeout is because for some reason the reports take a long time to complete. Kept getting
read timeout errors otherwise. I use
system.report.executeAndDistribute to send them. I loop through locations and populate
system.report.executeAndDistribute with the parameters. I’ve only tried 3 locations so far and it takes about 1/2hr to see them get to my email.
My SQL calls aren’t too lengthy either. But one table might have 1000’s of rows (5 columns). Wondering if maybe that’s the bottleneck/issue?