SetExecutionTimeout(timeout) Last updated: 07. Feb 2025

API only function

Sets the maximum server side execution timeout for API functions. Can be set up to a maximum of 10 minutes (600000 milliseconds). Note: Setting the timeout requires additional privileges on the subscription.

Parameters

Name Type Description
timeout number Timeout value in milliseconds (60000-600000)

Returns

boolean, returns true if setting is allowed otherwise false.

Example

Code example (JS)

JS is normal JavaScript either running in the browser or on the Docly™ server.
docly.setExecutionTimeout(600000); // Sets execution timeout to 10 minutes (600,000 ms)

// Do other stuff here