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.

Caution

The timeout does not fire while a script awaits a timer, so a loop built on await or setTimeout can 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 with Thread.Sleep instead, and add your own elapsed-time budget. Go to Wait for an external job to finish for more information.

Script timeout

Script timeout

📘

Note

The Script timeout field is available beginning in Orange Logic Princeton.


Did this page help you?