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.

Rookie Asked on October 15, 2019 in SuiteScript.
Add Comment
2 Answer(s)

Delete the file? Wait an hour after undeploying it?

Advanced Answered on October 15, 2019.

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.

on October 16, 2019.

That’s the standard time limit

on October 16, 2019.
Add Comment

I guess it doesn’t use the actual script, but one in cache?

Just got stuck with one too :/

Rookie Answered on May 25, 2020.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.
  • This site made possible by our sponsors:   Tipalti   Celigo   Limebox   Become a Sponsor   Become a Sponsor