0.10.0 • Published 7 years ago
le-job-queue-service v0.10.0
le-job-queue-service
Create and process background jobs
Installation
npm install le-job-queue-service
Usage
var storage = /* initialize storage service */
var JobQueueService = require('le-email-service');
var jobQueue = new JobQueueService(storage);
// Add a job, likely done client-side
jobQueue.addJob('welcome-email', { name: 'Optimus' })
.then(function (record) {
...
});
// create a worker, likely done server-side
var provider = /* initialize job queue provider (such as le-job-queue-provider-firebase) */
function processJob (job, complete) {
...
complete();
}
jobQueue.createWorker(provider, processJob);
Tests
npm test
to run unit tests oncegulp tdd
to run unit and e2e tests when tests changegulp coverage
to run unit tests and create a code coverage report
Contributing
Please follow the project's conventions or your changes will not be accepted
Release History
- 0.1.0 Initial release
0.10.0
7 years ago
0.9.2
7 years ago
0.9.1
7 years ago
0.8.8
7 years ago
0.8.7
7 years ago
0.8.6
7 years ago
0.8.5
7 years ago
0.8.4
7 years ago
0.8.3
7 years ago
0.8.2
7 years ago
0.8.1
7 years ago
0.8.0
7 years ago
0.7.0
7 years ago
0.6.0
8 years ago
0.5.0
8 years ago
0.4.0
8 years ago
0.3.0
8 years ago
0.2.0
8 years ago
0.1.0
9 years ago