function gracefulShutdown() {
  const start = Date.now();
  jobQueue.shutdown(conf.kueShutdownTimeout, (err) => {
    if (featureToggles.isFeatureEnabled('enableSigtermActivityLog')) {
      const status = '"Job queue shutdown: ' + (err || 'OK') + '"';
      const logWrapper = {
        status,
        totalTime: `${Date.now() - start}ms`,
      };
      activityLogUtil.printActivityLogString(logWrapper, 'sigterm');
    }
  });
}
/**
 * Kue's Queue graceful shutdown.
 */
Kue's Queue graceful shutdown.
Kue ' s Queue graceful shutdown .
function gracefulShutdown() {
  const start = Date.now();
  jobQueue.shutdown(conf.kueShutdownTimeout, (err) => {
    if (featureToggles.isFeatureEnabled('enableSigtermActivityLog')) {
      const status = '"Job queue shutdown: ' + (err || 'OK') + '"';
      const logWrapper = {
        status,
        totalTime: `${Date.now() - start}ms`,
      };
      activityLogUtil.printActivityLogString(logWrapper, 'sigterm');
    }
  });
}
function gracefulShutdown ( ) { const start = Date . now ( ) ; jobQueue . shutdown ( conf . kueShutdownTimeout , ( err ) => { if ( featureToggles . isFeatureEnabled ( 'enableSigtermActivityLog' ) ) { const status = '"Job queue shutdown: ' + ( err || 'OK' ) + '"' ; const logWrapper = { status , totalTime : ` ${ Date . now ( ) - start } ` , } ; activityLogUtil . printActivityLogString ( logWrapper , 'sigterm' ) ; } } ) ; }
Kue's Queue graceful shutdown.
Kue ' s Queue graceful shutdown .