summaryContext.isRestarted

Property Description

Indicates whether the summarize(summaryContext) function was invoked again.

To reduce negative impact to map/reduce processing if the Java virtual machine (JVM) restarts, NetSuite automatically restarts the current summary function. Summary data previously written by the incomplete function is deleted.

If the value is true, the current process invoked by summarize(summaryContext) was restarted. You can use this information to help you write a more robust map/reduce script that is designed to continue interrupted work as necessary.

Type

boolean (read-only)

Since

2016.1

Syntax

          ...
function summarize(summary) {
  if (summary.isRestarted)
  {
    log.debug('SUMMARY isRestarted', 'YES');
  }
  else
  {
    log.debug('SUMMARY isRestarted', 'NO');
  }
  log.debug('summarize', JSON.stringify(summary));
... 

        

Related Topics

summaryContext
summaryContext.concurrency
summaryContext.dateCreated
summaryContext.seconds
summaryContext.usage
summaryContext.yields
summaryContext.inputSummary
summaryContext.mapSummary
summaryContext.reduceSummary
summaryContext.output

General Notices