示例#1
0
 inbox.clean(1000).then(function () {
   console.log('inbox queue clean')
   failed.clean(1000).then(function () {
     console.log('failed queue clean')
     docWorker.init(tmpPath, done)
   })
 })
示例#2
0
 before(function (done) {
   getRepoEvents = sinon.stub(repo, 'getRepoEvents')
   getRepoEvents.yields(null, [])
   inbox = new Bull('inbox', env.redis.port, env.redis.host)
   failed = new Bull('failed', env.redis.port, env.redis.host)
   inbox.clean(1000).then(function () {
     console.log('inbox queue clean')
     failed.clean(1000).then(function () {
       console.log('failed queue clean')
       docWorker.init(tmpPath, done)
     })
   })
 })