Closed makeitcount closed 2 years ago
This PR fixes issue #6
This implementation uses bullmq for the heavylifting and Redis for queue data persistance.
How to add a new job definition i.e. what needs to be done
WorkerJobs.js
WorkerService.JOB_PROCESSOR_MAP
How to add a new job to the queue i.e. when it needs to be done
A. For one time job WorkerService.addJob
B. For a repetitive cron job WorkerService.addCronJob
WorkerService.addJob
WorkerService.addCronJob
EmailService.sendEmail(emailCategory, { addToQueue: true })