MapReduceScriptTaskStatus Object Members in NetSuite SuiteScript
Explore the members of MapReduceScriptTaskStatus for effective task management in NetSuite's N/task module.
MapReduceScriptTaskStatus is a key object in NetSuite's N/task module, crucial for developers managing MapReduce script deployments. Understanding its members allows for effective status monitoring and debugging of tasks within NetSuite.
What Members Does MapReduceScriptTaskStatus Include?
MapReduceScriptTaskStatus offers several methods and properties to assess the current status of a MapReduce task. Here's what you need to know:
Methods
- getCurrentTotalSize(): Returns the total size in bytes of all work in progress.
- getPendingMapCount(): Provides the number of records or rows not yet processed by the map stage.
- getPendingMapSize(): Gives the total bytes outstanding in the map stage.
- getPendingOutputCount(): Lists the records or rows awaiting processing.
- getPendingOutputSize(): Shows the total size of all output key-value pairs.
- getPendingReduceCount(): Displays the records or rows unprocessed in the reduce stage.
- getPendingReduceSize(): Reflects outstanding bytes in the reduce stage.
- getPercentageCompleted(): Returns the completion percentage for the current stage.
- getTotalMapCount(): Shows the total records or rows input to the map stage.
- getTotalOutputCount(): Reveals the total input records or rows in the output phase.
- getTotalReduceCount(): Indicates the record or row inputs for the reduce stage.
Properties
- deploymentId: (string, read-only) The ID of the deployment record.
- scriptId: (number, read-only) Internal ID for the script record.
- stage: (string, read-only) Represents the task's current stage.
- status: (string, read-only) The task's current status, returned as a
task.TaskStatusvalue. - taskId: (string, read-only) Links to the specific task by ID.
Who This Affects
This information is invaluable for NetSuite developers and administrators involved in scripting and task management using MapReduce scripts.
Key Takeaways
- Comprehensive Monitoring: Provides insight into all stages and statuses of MapReduce tasks.
- Efficient Troubleshooting: Key for identifying and resolving issues in script executions.
- Asynchronous Processing Insight: Crucial for understanding task flow in an asynchronous environment.
Frequently Asked Questions (4)
How can I track the progress of a Map/Reduce script in NetSuite?
Does the MapReduceScriptTaskStatus object work with both client and server scripts?
Can I use the MapReduceScriptTaskStatus object to manage tasks synchronously?
What is the function of the method getPendingMapCount() within the MapReduceScriptTaskStatus object?
Was this article helpful?
More in SuiteScript
- Common SuiteScript Errors and Solutions for NetSuite
Common NetSuite script errors include INVALID_SCRIPT_DEPLOYMENT_ID and SSS_AUTHORIZATION_HEADER_NOT_ALLOWED. Learn effective solutions.
- Set Sublist Field Values in SuiteScript 2.x for Record Management
Set sublist field values in SuiteScript 2.x for effective record management using standard and dynamic modes.
- Setting Field Values in SuiteScript for Effective Record
Learn to set field values in SuiteScript effectively, troubleshooting common errors and understanding data types.
- SuiteScript 2.1 Enhancements and API Updates in NetSuite
SuiteScript 2.1 enables execution of 2.0 scripts and supports PATCH method for enhanced API capabilities.
Advertising
Reach SuiteScript Professionals
Put your product in front of NetSuite experts who work with SuiteScript every day.
Sponsor This Category