An Worker framework for built background process queue, made with Bull without worries
For spawning workers in server
Same as spawn.sh
but for windows
Routing your queue based on event name
An ORM for DB Intracation
To store your logic worker, must be have payload
parameter, for example:
const generatePDF = (payload) => {
// payload can store data infomation from initiator of worker
}
export default generatePDF;
Connection config of DB
Engine for routing Queue & Configuration redis
Used for testing purpose, in case you have generatePDF
handler you should add new flag in cli.js:
program
.command('twitter')
.option('-g, --generate', 'generating pdf')
.cation((cmd) => {
if(cmd.generate){
// call your handler function
}
}
run with
$ node cli.js twitter -g