Currently running Scripts On Ignition Gateway

What would happen if I hit on cancel? Can someone please help me understand the purpose of this diagnostics?

The script would stop running.

What are those scripts doing that could possibly take 2 days? Are they running an infinite loop?

4 Likes

I had a couple that did this. They were reaching out to a url with system.net.httpClient().get() and the internet died and came back, but for some reason they didn’t produce a timeout exception and just sat there… There’s a relatively short default timeout, but it didn’t respect it. I had to supply it (system.net.httpClient().get(timeout=10000)) which I think has fixed it… time will tell

The purpose is to be able to see what timer scripts are running, to find issues like this one.

Before you cancel them, I would be taking a thread dump so that you can see what’s holding them up. Use Kindling to open the dump and find those thread ids in there. The stack trace will tell you, or IA, or us, what it’s stuck on

3 Likes