defaultDoneCallback() {
    logger.info('Renaming the cache key to production! ');

    for(let sku of this._productHisto){
      const origKey = util.format(CacheKeys.CACHE_KEY_PRODUCT_CATEGORIES_TEMPORARY, sku); 
      const destKey = util.format(CacheKeys.CACHE_KEY_PRODUCT_CATEGORIES, sku); 
      // logger.debug(util.format('Moving %s to %s', origKey, destKey));

      this.cache.rename(origKey, destKey);
    }

    logger.info('Publishing cache keys to production finished!');

  /*  q.start((err) => {
      if (err) throw err
      logger.info('all done:', results)
    });*/
  }
/**
   * Default done callback called after all main items are processed by processItems
   */
Default done callback called after all main items are processed by processItems
Default done callback called after all main items are processed by processItems
defaultDoneCallback() {
    logger.info('Renaming the cache key to production! ');
    for(let sku of this._productHisto){
      const origKey = util.format(CacheKeys.CACHE_KEY_PRODUCT_CATEGORIES_TEMPORARY, sku); 
      const destKey = util.format(CacheKeys.CACHE_KEY_PRODUCT_CATEGORIES, sku); 
      this.cache.rename(origKey, destKey);
    }
    logger.info('Publishing cache keys to production finished!');
  }
defaultDoneCallback ( ) { logger . info ( 'Renaming the cache key to production! ' ) ; for ( let sku of this . _productHisto ) { const origKey = util . format ( CacheKeys . CACHE_KEY_PRODUCT_CATEGORIES_TEMPORARY , sku ) ; const destKey = util . format ( CacheKeys . CACHE_KEY_PRODUCT_CATEGORIES , sku ) ; this . cache . rename ( origKey , destKey ) ; } logger . info ( 'Publishing cache keys to production finished!' ) ; }
Default done callback called after all main items are processed by processItems
Default done callback called after all main items are processed by processItems
// logger.debug(util.format('Moving %s to %s', origKey, destKey)); /*  q.start((err) => {
      if (err) throw err
      logger.info('all done:', results)
    });*/