I’m wondering when scripts used in the gateway are reloaded after modification.
F.e. imagine I want to read a value from a tag process it, and write a result value to another tag or log it in a DB. The code to achieve this is placed in a shared script, and fired on a value changed trigger script.
When I save a new version of the script, the changes get applied automatically, and I don’t have to shut down all places where the script is used (which is great ofc). But I wonder if the script execution can stop midway between reading and writing. Or if there’s a guarantee that this thread will finish correctly, and the new script will only be used on the next trigger.
What happens when I wrote an infinite loop during the processing? Is there a timeout to halt the thread and start executing the new code anyway? How big would that timeout be, is it enough to do some network stuff?