which I think shows that task2 is being run several times in parallel (as it has task completion at 5,7,9 secs)
What I want task2 to do is what it did under the 1st condition of thread safe scripts being unticked
Background info as to why I'm after this The wait 2 sec is simulating an incoming MQTT message event and I normally want anything triggered by that event to run to completion and ignore any other messages until that has happened. Which is why I enable Thread safe scripts
But now I want to be able to deal with a different event2, and not have that script run to completion unless the time between two successive event2 exceed the running time of the 2nd script