module (N/runtime)

SuiteScript 2.0


// Please search for more information.

N/runtime Module
Property Description: The number of scheduled script queues available to the current account. SuiteCloud Processors is the current system used to execute (process) scheduled scripts and map/reduce scripts. This property is helpful if you are a SuiteApp developer and your script needs to know the total number of queues available to a deployment. For map/reduce script deployments, use runtime.processorCount. With the introduction of SuiteCloud Processors, no map/reduce script deployments use queues (see SuiteCloud Processors – Supported Task Types). Be aware that the number of queues available may not be the same as the number of processors available (see SuiteCloud Plus Settings). If all scheduled script deployments in an account are configured to no longer use queues (see SuiteCloud Processors – Supported Task Types), the value of runtime.queueCount is unchanged. This property reflects the number of queues available to an account. It is not impacted by changes to deployments. For more information on scheduled scripts, see SuiteScript 2.0 Scheduled Script Type.
Type: number (read-only)
Supported Script Types: Client and server scripts For more information, see SuiteScript 2.0 Script Types.
Module: N/runtime Module
Since: 2015.2
Search NetSuite -


// Code Example 1
// Add additional code
log.debug('Number of queues available: ' + runtime.queueCount);
// Add additional code