api documentation for bull (v2.2.6)

Job manager

table of contents

  1. module bull
    1. function bull (name, redisPort, redisHost, redisOptions)
    2. function bull.job (queue, data, opts)
    3. function bull.priority_queue (name, redisPort, redisHost, redisOptions)
    4. function bull.queue (name, redisPort, redisHost, redisOptions)
    5. function bull.super_ (pubClient, subClient)
    6. function bull.timer_manager ()
    7. object bull.job.prototype
    8. object bull.priority_queue.prototype
    9. object bull.queue.prototype
    10. object bull.scripts
    11. object bull.super_.prototype
    12. object bull.timer_manager.prototype
  2. module bull.job
    1. function bull.job (queue, data, opts)
    2. function bull.job.create (queue, data, opts)
    3. function bull.job.fromData (queue, jobId, data)
    4. function bull.job.fromId (queue, jobId)
    5. function bull.job.fromJSON (queue, json)
  3. module bull.job.prototype
    1. function bull.job.prototype._getBackOff ()
    2. function bull.job.prototype._isDone (list)
    3. function bull.job.prototype._isInList (list)
    4. function bull.job.prototype._moveToSet (set, context)
    5. function bull.job.prototype._retryAtOnce ()
    6. function bull.job.prototype._saveAttempt (err)
    7. function bull.job.prototype.delayIfNeeded ()
    8. function bull.job.prototype.discard ()
    9. function bull.job.prototype.finished ()
    10. function bull.job.prototype.getState ()
    11. function bull.job.prototype.isActive ()
    12. function bull.job.prototype.isCompleted ()
    13. function bull.job.prototype.isDelayed ()
    14. function bull.job.prototype.isFailed ()
    15. function bull.job.prototype.isPaused ()
    16. function bull.job.prototype.isStuck ()
    17. function bull.job.prototype.isWaiting ()
    18. function bull.job.prototype.lockKey ()
    19. function bull.job.prototype.move (src, target, returnValue)
    20. function bull.job.prototype.moveToCompleted (returnValue)
    21. function bull.job.prototype.moveToDelayed (timestamp)
    22. function bull.job.prototype.moveToFailed (err)
    23. function bull.job.prototype.progress (progress)
    24. function bull.job.prototype.promote ()
    25. function bull.job.prototype.releaseLock ()
    26. function bull.job.prototype.remove ()
    27. function bull.job.prototype.renewLock ()
    28. function bull.job.prototype.retry ()
    29. function bull.job.prototype.takeLock (renew, ensureActive)
    30. function bull.job.prototype.toData ()
    31. function bull.job.prototype.toJSON ()
  4. module bull.priority_queue
    1. function bull.priority_queue (name, redisPort, redisHost, redisOptions)
    2. function bull.priority_queue.genericGetter (fnName)
    3. function bull.priority_queue.getQueueName (name, priority)
    4. function bull.priority_queue.super_ ()
    5. object bull.priority_queue.priorities
  5. module bull.priority_queue.prototype
    1. function bull.priority_queue.prototype.add (data, opts)
    2. function bull.priority_queue.prototype.clean (grace, type)
    3. function bull.priority_queue.prototype.close ( doNotWaitJobs )
    4. function bull.priority_queue.prototype.count ()
    5. function bull.priority_queue.prototype.disconnect ()
    6. function bull.priority_queue.prototype.empty ()
    7. function bull.priority_queue.prototype.getActive ()
    8. function bull.priority_queue.prototype.getCompleted ()
    9. function bull.priority_queue.prototype.getDelayed ()
    10. function bull.priority_queue.prototype.getFailed ()
    11. function bull.priority_queue.prototype.getQueue (priority)
    12. function bull.priority_queue.prototype.getWaiting ()
    13. function bull.priority_queue.prototype.pause (localOnly)
    14. function bull.priority_queue.prototype.process (handler)
    15. function bull.priority_queue.prototype.resume (localOnly)
    16. function bull.priority_queue.prototype.run ()
    17. function bull.priority_queue.prototype.setLockRenewTime (lockRenewTime)
    18. number bull.priority_queue.prototype.waitAfterEmptyLoop
  6. module bull.queue
    1. function bull.queue (name, redisPort, redisHost, redisOptions)
    2. function bull.queue.super_ (pubClient, subClient)
  7. module bull.queue.prototype
    1. function bull.queue.prototype.add (data, opts)
    2. function bull.queue.prototype.clean (grace, type, limit)
    3. function bull.queue.prototype.close ( doNotWaitJobs )
    4. function bull.queue.prototype.count ()
    5. function bull.queue.prototype.disconnect ()
    6. function bull.queue.prototype.distEmit ()
    7. function bull.queue.prototype.empty ()
    8. function bull.queue.prototype.getActive ()
    9. function bull.queue.prototype.getActiveCount ()
    10. function bull.queue.prototype.getCompleted ()
    11. function bull.queue.prototype.getCompletedCount ()
    12. function bull.queue.prototype.getDelayed ()
    13. function bull.queue.prototype.getDelayedCount ()
    14. function bull.queue.prototype.getFailed ()
    15. function bull.queue.prototype.getFailedCount ()
    16. function bull.queue.prototype.getJob (jobId)
    17. function bull.queue.prototype.getJobCountByTypes ()
    18. function bull.queue.prototype.getJobCounts ()
    19. function bull.queue.prototype.getJobMoveCount ()
    20. function bull.queue.prototype.getJobs (queueType, type, start, end)
    21. function bull.queue.prototype.getNextJob (opts)
    22. function bull.queue.prototype.getPausedCount ()
    23. function bull.queue.prototype.getWaiting ()
    24. function bull.queue.prototype.getWaitingCount ()
    25. function bull.queue.prototype.isReady ()
    26. function bull.queue.prototype.moveJob (src, dst, opts)
    27. function bull.queue.prototype.moveUnlockedJobsToWait ()
    28. function bull.queue.prototype.multi ()
    29. function bull.queue.prototype.on ()
    30. function bull.queue.prototype.once ()
    31. function bull.queue.prototype.pause (isLocal, doNotWaitActive)
    32. function bull.queue.prototype.process (concurrency, handler)
    33. function bull.queue.prototype.processJob (job)
    34. function bull.queue.prototype.processJobs (resolve, reject)
    35. function bull.queue.prototype.resume (isLocal)
    36. function bull.queue.prototype.retryJob (job)
    37. function bull.queue.prototype.run (concurrency)
    38. function bull.queue.prototype.setHandler (handler)
    39. function bull.queue.prototype.startMoveUnlockedJobsToWait ()
    40. function bull.queue.prototype.toKey (queueType)
    41. function bull.queue.prototype.updateDelayTimer (newDelayedTimestamp)
    42. function bull.queue.prototype.whenCurrentJobsFinished ()
    43. function bull.queue.prototype.whenCurrentMoveFinished ()
  8. module bull.scripts
    1. function bull.scripts._isJobInList (keyVar, argVar, operator)
    2. function bull.scripts.addJob (client, toKey, job, opts)
    3. function bull.scripts.cleanJobsInSet (queue, set, ts, limit)
    4. function bull.scripts.isJobInList (client, listKey, jobId)
    5. function bull.scripts.move (job, src, target)
    6. function bull.scripts.moveToCompleted (job, removeOnComplete)
    7. function bull.scripts.moveToSet (queue, set, jobId, context)
    8. function bull.scripts.moveUnlockedJobsToWait (queue)
    9. function bull.scripts.releaseLock (job)
    10. function bull.scripts.remove (queue, jobId)
    11. function bull.scripts.reprocessJob (job, options)
    12. function bull.scripts.takeLock (queue, job, renew, ensureActive)
    13. function bull.scripts.updateDelaySet (queue, delayedTimestamp)
  9. module bull.super_
    1. function bull.super_ ()
  10. module bull.super_.prototype
    1. function bull.super_.prototype.distEmit (evt)
    2. function bull.super_.prototype.off (evt, listener)
    3. function bull.super_.prototype.on (evt, listener, isGlobal)
    4. function bull.super_.prototype.removeListener (evt, listener)
  11. module bull.timer_manager
    1. function bull.timer_manager ()
  12. module bull.timer_manager.prototype
    1. function bull.timer_manager.prototype.clear (id)
    2. function bull.timer_manager.prototype.clearAll ()
    3. function bull.timer_manager.prototype.set (name, delay, fn)
    4. function bull.timer_manager.prototype.whenIdle ()

module bull

function bull (name, redisPort, redisHost, redisOptions)

function bull.job (queue, data, opts)

function bull.priority_queue (name, redisPort, redisHost, redisOptions)

function bull.queue (name, redisPort, redisHost, redisOptions)

function bull.super_ (pubClient, subClient)

function bull.timer_manager ()

module bull.job

function bull.job (queue, data, opts)

function bull.job.create (queue, data, opts)

function bull.job.fromData (queue, jobId, data)

function bull.job.fromId (queue, jobId)

function bull.job.fromJSON (queue, json)

module bull.job.prototype

function bull.job.prototype._getBackOff ()

function bull.job.prototype._isDone (list)

function bull.job.prototype._isInList (list)

function bull.job.prototype._moveToSet (set, context)

function bull.job.prototype._retryAtOnce ()

function bull.job.prototype._saveAttempt (err)

function bull.job.prototype.delayIfNeeded ()

function bull.job.prototype.discard ()

function bull.job.prototype.finished ()

function bull.job.prototype.getState ()

function bull.job.prototype.isActive ()

function bull.job.prototype.isCompleted ()

function bull.job.prototype.isDelayed ()

function bull.job.prototype.isFailed ()

function bull.job.prototype.isPaused ()

function bull.job.prototype.isStuck ()

function bull.job.prototype.isWaiting ()

function bull.job.prototype.lockKey ()

function bull.job.prototype.move (src, target, returnValue)

function bull.job.prototype.moveToCompleted (returnValue)

function bull.job.prototype.moveToDelayed (timestamp)

function bull.job.prototype.moveToFailed (err)

function bull.job.prototype.progress (progress)

function bull.job.prototype.promote ()

function bull.job.prototype.releaseLock ()

function bull.job.prototype.remove ()

function bull.job.prototype.renewLock ()

function bull.job.prototype.retry ()

function bull.job.prototype.takeLock (renew, ensureActive)

function bull.job.prototype.toData ()

function bull.job.prototype.toJSON ()

module bull.priority_queue

function bull.priority_queue (name, redisPort, redisHost, redisOptions)

function bull.priority_queue.genericGetter (fnName)

function bull.priority_queue.getQueueName (name, priority)

function bull.priority_queue.super_ ()

module bull.priority_queue.prototype

function bull.priority_queue.prototype.add (data, opts)

function bull.priority_queue.prototype.clean (grace, type)

function bull.priority_queue.prototype.close ( doNotWaitJobs )

function bull.priority_queue.prototype.count ()

function bull.priority_queue.prototype.disconnect ()

function bull.priority_queue.prototype.empty ()

function bull.priority_queue.prototype.getActive ()

function bull.priority_queue.prototype.getCompleted ()

function bull.priority_queue.prototype.getDelayed ()

function bull.priority_queue.prototype.getFailed ()

function bull.priority_queue.prototype.getQueue (priority)

function bull.priority_queue.prototype.getWaiting ()

function bull.priority_queue.prototype.pause (localOnly)

function bull.priority_queue.prototype.process (handler)

function bull.priority_queue.prototype.resume (localOnly)

function bull.priority_queue.prototype.run ()

function bull.priority_queue.prototype.setLockRenewTime (lockRenewTime)

module bull.queue

function bull.queue (name, redisPort, redisHost, redisOptions)

function bull.queue.super_ (pubClient, subClient)

module bull.queue.prototype

function bull.queue.prototype.add (data, opts)

function bull.queue.prototype.clean (grace, type, limit)

function bull.queue.prototype.close ( doNotWaitJobs )

function bull.queue.prototype.count ()

function bull.queue.prototype.disconnect ()

function bull.queue.prototype.distEmit ()

function bull.queue.prototype.empty ()

function bull.queue.prototype.getActive ()

function bull.queue.prototype.getActiveCount ()

function bull.queue.prototype.getCompleted ()

function bull.queue.prototype.getCompletedCount ()

function bull.queue.prototype.getDelayed ()

function bull.queue.prototype.getDelayedCount ()

function bull.queue.prototype.getFailed ()

function bull.queue.prototype.getFailedCount ()

function bull.queue.prototype.getJob (jobId)

function bull.queue.prototype.getJobCountByTypes ()

function bull.queue.prototype.getJobCounts ()

function bull.queue.prototype.getJobMoveCount ()

function bull.queue.prototype.getJobs (queueType, type, start, end)

function bull.queue.prototype.getNextJob (opts)

function bull.queue.prototype.getPausedCount ()

function bull.queue.prototype.getWaiting ()

function bull.queue.prototype.getWaitingCount ()

function bull.queue.prototype.isReady ()

function bull.queue.prototype.moveJob (src, dst, opts)

function bull.queue.prototype.moveUnlockedJobsToWait ()

function bull.queue.prototype.multi ()

function bull.queue.prototype.on ()

function bull.queue.prototype.once ()

function bull.queue.prototype.pause (isLocal, doNotWaitActive)

function bull.queue.prototype.process (concurrency, handler)

function bull.queue.prototype.processJob (job)

function bull.queue.prototype.processJobs (resolve, reject)

function bull.queue.prototype.resume (isLocal)

function bull.queue.prototype.retryJob (job)

function bull.queue.prototype.run (concurrency)

function bull.queue.prototype.setHandler (handler)

function bull.queue.prototype.startMoveUnlockedJobsToWait ()

function bull.queue.prototype.toKey (queueType)

function bull.queue.prototype.updateDelayTimer (newDelayedTimestamp)

function bull.queue.prototype.whenCurrentJobsFinished ()

function bull.queue.prototype.whenCurrentMoveFinished ()

module bull.scripts

function bull.scripts._isJobInList (keyVar, argVar, operator)

function bull.scripts.addJob (client, toKey, job, opts)

function bull.scripts.cleanJobsInSet (queue, set, ts, limit)

function bull.scripts.isJobInList (client, listKey, jobId)

function bull.scripts.move (job, src, target)

function bull.scripts.moveToCompleted (job, removeOnComplete)

function bull.scripts.moveToSet (queue, set, jobId, context)

function bull.scripts.moveUnlockedJobsToWait (queue)

function bull.scripts.releaseLock (job)

function bull.scripts.remove (queue, jobId)

function bull.scripts.reprocessJob (job, options)

function bull.scripts.takeLock (queue, job, renew, ensureActive)

function bull.scripts.updateDelaySet (queue, delayedTimestamp)

module bull.super_

function bull.super_ ()

module bull.super_.prototype

function bull.super_.prototype.distEmit (evt)

function bull.super_.prototype.off (evt, listener)

function bull.super_.prototype.on (evt, listener, isGlobal)

function bull.super_.prototype.removeListener (evt, listener)

module bull.timer_manager

function bull.timer_manager ()

module bull.timer_manager.prototype

function bull.timer_manager.prototype.clear (id)

function bull.timer_manager.prototype.clearAll ()

function bull.timer_manager.prototype.set (name, delay, fn)

function bull.timer_manager.prototype.whenIdle ()

[ this document was created with utility2 ]