Docly Developers
Function API only Updated 17 Oct 2026

setExecutionTimeout(timeout)

Sets the maximum server-side execution time for the current API function or service. The value is capped at 10 minutes (600000 milliseconds); a larger value is reduced to 10 minutes. A scheduled service that already has a longer TimeOut in Services.json keeps it.
Note: only allowed when the site owner is a Docly administrator.

Parameters

timeoutnumberrequired

Timeout value in milliseconds. Values above 600000 are reduced to 600000.

Returns

true when the timeout was set. false when it is not allowed, or when the value is missing, 0 or negative — the previous timeout then still applies.

Example

Normal JavaScript, 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