bedrock-jobs

3.2.0 • Public • Published

bedrock-jobs

A job queue for Bedrock applications backed by Bull.

Usage

If multiple instances of the same Bedrock application are running on the same Redis server, a unique prefix should be assigned in each application's Bedrock configuration. This is analogous to specifying a different database for each application when using bedrock-mongodb.

config.jobs.queueOptions.prefix = 'myApplicationPrefix';

API Reference

Modules

bedrock-jobs

Typedefs

QueueOptions : Object

Bull QueueOptions.

bedrock-jobs

bedrock-jobs.addQueue(options) ⇒ Queue

Creates a new Bull Queue that is persisted in Redis. Every time a queue with the same name is instantiated it tries to process all the old jobs that may exist from a previous unfinished session.

Kind: static method of bedrock-jobs
Returns: Queue - A Bull Queue.

Param Type Default Description
options Object The options to use.
options.name string The name for the queue.
[options.queueOptions] QueueOptions {} The Bull QueueOptions.

QueueOptions : Object

Bull QueueOptions.

Kind: global typedef
Link: https://github.com/OptimalBits/bull/blob/develop/REFERENCE.md#queue

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
3.2.00latest

Version History

VersionDownloads (Last 7 Days)Published
3.2.00
3.1.00
3.0.10
3.0.00
2.0.40
2.0.31
2.0.20
2.0.10
2.0.00
1.0.10
1.0.00
0.1.00
0.0.10

Package Sidebar

Install

npm i bedrock-jobs

Weekly Downloads

1

Version

3.2.0

License

SEE LICENSE IN LICENSE.md

Unpacked Size

11.2 kB

Total Files

8

Last publish

Collaborators

  • davidlehn
  • msporny
  • dlongley
  • mattcollier