task.TaskType
JavaScript does not include an enumeration type. The SuiteScript 2.x documentation uses the term enumeration (or enum) to describe a plain JavaScript object with a flat, map-like structure. In this object, each key points to a read-only string value.
Enum Description |
Holds the string values for the types of task objects you can create using task.create(options). |
Module |
|
Sibling Module Members |
|
Since |
2015.2 |
Values
Value |
---|
|
|
|
|
|
|
|
|
|
Ensure that you are familiar with script execution time limits when creating tasks. Each server script type is limited to an amount of time it can run on a single execution. For more information, see the time limit chart on Script Execution Time Limits.
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 |
Syntax
The following code sample shows the syntax for this member. It is not a functional example. For a complete script example, see N/task Module Script Samples.
// Add additional code ...
var mrTask = task.create({
taskType: task.TaskType.MAP_REDUCE
});
...
// Add additional code