ac-bootstrap-bull

2.1.2 • Public • Published

AdmiralCloud Bull Queue List

This helper initialitzes Bull lists and helper functions and makes them available on a globally scoped variable.

Usage

const bullOptions = {
  activateListeners: true/false,
  worker: BatchProcessCollector, // optional module that has all worker functions available
  handlers: {
    'global:completed': BullHelper // optional module that reacts to global:completed events - functions in there must be named after the jobList name (e.g. sendEmail)
  },
  jobLists: [{
    jobList: 'sendEmail',
    enabled: true
  }, ...]
}

// acapi should be globally available throughout your app to access Bull functions
const acapi = {}
// make bull (and bull helper functions) available on acapi.bull
acapi.bull = acbBull(acapi)
// init the bull lists
acapi.bull.init(bullOptions, done)

TBC

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
2.1.24latest

Version History

VersionDownloads (Last 7 Days)Published
2.1.24
2.1.11
2.1.00
2.0.60
2.0.52
2.0.40
2.0.30
2.0.21
2.0.10
2.0.00
1.0.143
1.0.130
1.0.121
1.0.111
1.0.100
1.0.90
1.0.80
1.0.70
1.0.62
1.0.53
1.0.40
1.0.30
1.0.20
1.0.11
1.0.01
0.0.10

Package Sidebar

Install

npm i ac-bootstrap-bull

Weekly Downloads

20

Version

2.1.2

License

MIT

Unpacked Size

29.5 kB

Total Files

7

Last publish

Collaborators

  • admiralcloud