function(qName, data, opts) {
    var q = queue.get(qName);
    return q.add(data, opts).then(function(job) {
      if (!job) {
        return job;
      }
      return job.getState().then(function(state) {
        job.state = state;
        return job;
      });
    });
  }
function(qName, data, opts) {
    var q = queue.get(qName);
    return q.add(data, opts).then(function(job) {
      if (!job) {
        return job;
      }
      return job.getState().then(function(state) {
        job.state = state;
        return job;
      });
    });
  }
function ( qName , data , opts ) { var q = queue . get ( qName ) ; return q . add ( data , opts ) . then ( function ( job ) { if ( ! job ) { return job ; } return job . getState ( ) . then ( function ( state ) { job . state = state ; return job ; } ) ; } ) ; }
Add a job
@param {String} qName Queue name
@param {Object} data job data
@param {Object} opts job options
@returns {Object} The job
Add a job