While Loop in Gateway Event Script

So I goofed and wrote a bad while loop to turn a tag on. I realized my mistake and tried to stop it and even deleted the script but it is still running somewhere. I have since renamed the tag and it does not seem to be a problem. How do I find where this tag is still being written from and how do I stop it. Thank you.

Gateway webpage -> Status -> diagnostics -> running scripts. Should give you an option to try and kill it. If it's still running regardless, the only other thing you can really do is shutdown and restart the gateway.

1 Like

THANK YOU!!!! That fixed it.

I hope this has convinced you to not use while loops in event scripts, unless the condition is certain to become false in a deterministic way. (That is, not based on an external condition, only on data already present in the script.)