lib/bots/chain.js
function bot(job, done) {

  var jobs = job.data.jobs
  console.log(job.data.jobs)
  if (!jobs) {
    done()
    return
  }

  for (var i = 0; i < jobs.length; i++) {
    var j = jobs[i]
    debug('Running : ' + j)
  }
  done()

}
function bot(job, done) {

  var jobs = job.data.jobs
  console.log(job.data.jobs)
  if (!jobs) {
    done()
    return
  }

  for (var i = 0; i < jobs.length; i++) {
    var j = jobs[i]
    debug('Running : ' + j)
  }
  done()

}
function bot ( job , done ) { var jobs = job . data . jobs console . log ( job . data . jobs ) if ( ! jobs ) { done ( ) return } for ( var i = 0 ; i < jobs . length ; i ++ ) { var j = jobs [ i ] debug ( 'Running : ' + j ) } done ( ) }
runs a chained command
@param  {object}   job  A kue job.
@param  {object}   done Called after done.
runs a chained command