A simple bull redis setup
npm:
npm install @ladjs/bull
yarn:
yarn add @ladjs/bull
const Bull = require('..');
const createEmail = () => {
return {
name: 'email',
data: {
template: 'inquiry',
to: 'Test email',
cc: 'test@test.com',
locales: {
locale: 'en-US'
}
},
options: {}
}
};
const job = createEmail();
const bull = new Bull();
bull.configure({
bullBootJobs: [
job
]
});
bull.start();
Name | Website |
---|---|
Shaun Warman | https://shaunwarman.com |