If I use the @OnQueueCompleted(), so I can get the response from one completed job in the queue, am I right? Or the @Onqueuecompleted() only responds when all jobs in the queue are completed.
Please help
If I use the @OnQueueCompleted(), so I can get the response from one completed job in the queue, am I right? Or the @Onqueuecompleted() only responds when all jobs in the queue are completed.
Please help
As the name implies, @OnQueueCompleted()
decorator factory refers to the 'completed'
event from Bull. Thus, your method will be called every time a job is completed in the queue.