streamer/streamer.js
// graceful shutdown of the queue and the service
graceful shutdown of the queue and the service
graceful shutdown of the queue and the service
function shutdown() {
    if ( cluster.isMaster ) {
        queue.shutdown( 60000, function(err) {
            utility.printLog(null, 'Kue shutdown: ' + err );
            process.exit( 0 );
        });
    }
}
function shutdown ( ) { if ( cluster . isMaster ) { queue . shutdown ( 60000 , function ( err ) { utility . printLog ( null , 'Kue shutdown: ' + err ) ; process . exit ( 0 ) ; } ) ; } }
graceful shutdown of the queue and the service
graceful shutdown of the queue and the service