Script Execution Time Limits
Each server script type and plug-in type has a limit on the amount of time it can run in a single execution. If the time limit is exceeded, an SSS_TIME_LIMIT_EXCEEDED
error is thrown and script execution stops. However, a script may run for a long time, and you may not see the SSS_TIME_LIMIT_EXCEEDED
error under these conditions:
-
The script performs a large number of record operations without exceeding the usage unit limit. See Script Type Usage Unit Limits for usage unit limits.
-
The script causes a large number of user event scripts or workflows to execute.
-
The script performs database queries or updates that collectively take a long time to finish.
The following tables list the time limit (in seconds) for each script type, core plug-in type, and custom plug-in type.
Script Type |
Time Limit (in Seconds) |
---|---|
Bundle Installation Scripts (SuiteScript 1.0) |
3,600 |
Client Scripts (SuiteScript 1.0) |
300 |
Custom record action |
300 |
Map/reduce (input stage) |
3,600 |
Map/reduce (map stage) |
300 |
Map/reduce (reduce stage) |
900 |
Map/reduce (summarize stage) |
3,600 |
Mass Update Scripts (SuiteScript 1.0) |
300 |
Portlet Scripts (SuiteScript 1.0) |
300 |
RESTlets (SuiteScript 1.0) |
300 |
3,600 |
|
Single-page application (SPA) |
300 |
Scheduled Scripts (SuiteScript 1.0) |
3,600 |
Suitelets (SuiteScript 1.0) |
300 |
SuiteScript Server Pages (SSP) application |
300 |
User Event Scripts (SuiteScript 1.0) |
300 |
Workflow Action Scripts (SuiteScript 1.0) |
300 |
Core Plug-in Type |
Time Limit (in Seconds) |
---|---|
Adjusted Consolidated Rates |
300 |
300 |
|
1,800 |
|
30 |
|
300 |
|
300 |
|
3,600 |
|
1,800 |
|
Payment Processing |
300 |
Platform Extension |
300 |
Promotions |
300 |
Revenue Management |
300 |
Shipping Partners |
300 |
Tax Engine |
60 |
300 |
Custom Plug-in Type |
Time Limit (in Seconds) |
---|---|
Plug-in Type |
3,600 |
Plug-in Type Implementation |
3,600 |