Skip to content

qie.isChannelRunning

Signature: qie.isChannelRunning()

Returns: Boolean isRunning - true = channel is running, false = channel is not running

Returns 'true' if the channel is currently running.

Parameters

None

Example

// Before a long job, stop early if the channel is no longer running.
if (!qie.isChannelRunning()) {
   return;
}
var itemsToProcess = message.getNode("/lotsOfItemsToProcess");
for (var i = 0; i < itemsToProcess.length; i++) {
   // continue laborious processing of items, re-checking between items
   if (!qie.isChannelRunning()) {
      break;
   }
}