modules/orionode/lib/graceful-cluster/graceful-cluster.js
function checkIfNoWorkersAndExit() {
            if (!currentWorkersCount) {
                log('Cluster graceful shutdown: done.');
                if (shutdownTimer) clearTimeout(shutdownTimer);
                exitFunction();
            } else {
                log('Cluster graceful shutdown: wait ' + currentWorkersCount + ' worker' + (currentWorkersCount > 1 ? 's' : '') + '.');
            }
        }
function checkIfNoWorkersAndExit() {
            if (!currentWorkersCount) {
                log('Cluster graceful shutdown: done.');
                if (shutdownTimer) clearTimeout(shutdownTimer);
                exitFunction();
            } else {
                log('Cluster graceful shutdown: wait ' + currentWorkersCount + ' worker' + (currentWorkersCount > 1 ? 's' : '') + '.');
            }
        }
function checkIfNoWorkersAndExit ( ) { if ( ! currentWorkersCount ) { log ( 'Cluster graceful shutdown: done.' ) ; if ( shutdownTimer ) clearTimeout ( shutdownTimer ) ; exitFunction ( ) ; } else { log ( 'Cluster graceful shutdown: wait ' + currentWorkersCount + ' worker' + ( currentWorkersCount > 1 ? 's' : '' ) + '.' ) ; } }
Check if has alive workers and exit.
Check if has alive workers and exit .