3.2.0 • Published 4 years ago

bedrock-jobs v3.2.0

Weekly downloads
81
License
SEE LICENSE IN LI...
Repository
github
Last release
4 years ago

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

Typedefs

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.

ParamTypeDefaultDescription
optionsObjectThe options to use.
options.namestringThe name for the queue.
options.queueOptionsQueueOptions{}The Bull QueueOptions.

QueueOptions : Object

Bull QueueOptions.

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

3.2.0

4 years ago

3.1.0

5 years ago

3.0.1

6 years ago

3.0.0

7 years ago

2.0.4

8 years ago

2.0.3

10 years ago

2.0.2

10 years ago

2.0.1

10 years ago

2.0.0

10 years ago

1.0.1

11 years ago

1.0.0

11 years ago

0.1.0

11 years ago

0.0.1

11 years ago