lib/models/queue.js
function(qName) {
    if (this._q.name !== qName) {
      this._q.name = qName;
      var queueOpts = {
        redis: {
          host: redis.redisOpts.host,
          port: redis.redisOpts.port,
          DB: redis.redisOpts.db,
          opts: {
            auth_pass: redis.redisOpts.auth_pass
          }
        }
      };
      this._q.instance = new bull(qName, queueOpts);
    }
    return this._q.instance;
  }
function(qName) {
    if (this._q.name !== qName) {
      this._q.name = qName;
      var queueOpts = {
        redis: {
          host: redis.redisOpts.host,
          port: redis.redisOpts.port,
          DB: redis.redisOpts.db,
          opts: {
            auth_pass: redis.redisOpts.auth_pass
          }
        }
      };
      this._q.instance = new bull(qName, queueOpts);
    }
    return this._q.instance;
  }
Get a queue by name
@param {String} qName Queue name
@returns {Object} An instance of the queue