function(qName, id) {
    var q = queue.get(qName);
    return q.getJob(id).then(function(job) {
      if (!job) {
        return job;
      }
      return job.getState().then(function(state) {
        job.state = state;
        return job;
      });
    });
  }
function(qName, id) {
    var q = queue.get(qName);
    return q.getJob(id).then(function(job) {
      if (!job) {
        return job;
      }
      return job.getState().then(function(state) {
        job.state = state;
        return job;
      });
    });
  }
function ( qName , id ) { var q = queue . get ( qName ) ; return q . getJob ( id ) . then ( function ( job ) { if ( ! job ) { return job ; } return job . getState ( ) . then ( function ( state ) { job . state = state ; return job ; } ) ; } ) ; }
Get a job by id
@param {String} qName Queue name
@param {String} id Job id
@returns {Object} The job
Get a job by id