Script timeout
Set a script timeout to prevent infinite failure loops. The script will terminate if it is not executed successfully within the timeout period. Enter a value in seconds.
If you leave Timeout (seconds) empty or set it to 0, the script runs under the platform default of 7,200 seconds, which is two hours.
Orange Logic enforces the timeout by interrupting the engine. The interrupt stops JavaScript that is running, including a busy loop, and it takes effect as soon as a Thread.Sleep returns.
CautionThe timeout does not fire while a script awaits a timer, so a loop built on
awaitorsetTimeoutcan run past the timeout you set. If the interrupt arrives while a timer callback is running, the callback stops and the script never ends. Pause withThread.Sleepinstead, and add your own elapsed-time budget. Go to Wait for an external job to finish for more information.

Script timeout
NoteThe Script timeout field is available beginning in Orange Logic Princeton.
Updated about 1 month ago

