ExecutionTimeout()
ts
function ExecutionTimeout(): number;This function returns the configured (absolute value) execution timeout in seconds for the script currently being run.
IMPORTANT
If you set the timeout to 0 (zero), the script can run pseudo-indefinitely. However, to prevent dead-loops and excessive resource usage, the software will internally cap such timeouts at 9,999,999 seconds (~115 days). Remember, Syncplify Server! scripts are designed to run in response to client-triggered events, not to run forever. If you need scripts that run continuously (e.g., to monitor a folder or automate file transfers), consider using file-transfer automation clients like AFT! instead.
Example
js
var tout = ExecutionTimeout();
Log(tout); // will log (for example): 30