Way to stop script-invoke-async thread

After some careless scripting i found that i have ended up with 3 threads trying to do the same thing and i cannot figure out how to stop them (short of restarting the gateway).

It isn’t safe to kill threads. Threads can and should be designed to be interruptible (checking for interrupt status and/or exceptions for graceful exit). If you didn’t do that, interrupt() may not work. If not, you will have to restart the gateway.

Search this forum for topics related to persistent thread and long-lived background tasks.