How to stop a scheduled script running in an infinite loop
I accidentally introduced an infinite loop into a scheduled script that I’m testing in production. (It’s not actually changing any records.) Is there a way to stop it from running? NetSuite has raised the log level to Emergency. I’ve tried fixing the error, commenting out the entire body of the function, and undeploying the script, but nothing’s worked and it hasn’t exceeded execution time naturally yet.
Delete the file? Wait an hour after undeploying it?
Thanks Kevin. It finally failed on its own almost exactly an hour after it started processing. I wonder if that’s a standard time limit or just a coincidence.
That’s the standard time limit
I guess it doesn’t use the actual script, but one in cache?
Just got stuck with one too :/