runtime.queueCount

Note:

The content in this help topic pertains to SuiteScript 2.0.

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).

Note:

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 about scheduled scripts, see SuiteScript 2.x Scheduled Script Type.

Type

number (read-only)

Supported Script Types

Client and server scripts

For more information, see SuiteScript 2.x Script Types.

Module

N/runtime Module

Since

2015.2

Syntax
Important:

The following code sample shows the syntax for this member. It is not a functional example. For a complete script example, see N/runtime Module Script Samples.

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

        

Related Topics

N/runtime Module
SuiteScript 2.x Modules
SuiteScript 2.x

General Notices