Map/Reduce Script Status Page

The Map/Reduce Script Status Page lets you view script status, instance details, and retrieve details programmatically.

Viewing Map/Reduce Script Status

You can monitor map/reduce script execution from the UI's script status page. The script status page shows whether a deployment is pending, in progress, or can't be completed.

If all tasks are pending, you can cancel the deployment from this page.

From NetSuite, go to Customization > Scripting > Map/Reduce Script Status.

To help you understand and optimize the performance of script entry points used, you can drill down for more details about map stages, processing utilization, and timing. This information helps you understand how long stages or tasks take.

From the script status page, you can also view the deployment record and consider adjusting the concurrency limit.

Viewing Details of Script Instances

A script instance is a scheduled script or map/reduce script task submitted for processing. This script instance can also be called a task.

To view the details of a map/reduce script instance, from the Map/Reduce Script Status page, click View Details. Each row shows info about a map/reduce job in the script instance. A job always belongs to one of the stages of a map/reduce script, and there is at least one job per stage. There's exactly one job for each of the getInputData, shuffle, and summarize stages. The number of map and reduce jobs depends on concurrency limits and yields.

For more information, see Map/Reduce Script Stages and Map/Reduce Yielding.

Important:

Script execution details are deleted after 30 days. Note that the statuses on the Map/Reduce Script Status page are different from those on the Script Deployment page. The statuses on Script Deployment pages (Not Scheduled, Scheduled, Testing) indicate the type of deployment. Map/Reduce Script Status page statuses show the script's execution progress.

Programmatically Retrieving Script Instance Details

To get the script status using the N/search Module, create and load a search using scheduledscriptinstance as the type argument.

To get the status using the N/task Module, see task.MapReduceScriptTask.

Related Topics

General Notices