Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如果我使用@OnQueueCompleted(),那么我可以从队列中一个已完成的作业中获得响应,对吗?或者 @Onqueuecompleted() 仅在队列中的所有作业都完成时才响应。
请帮忙
顾名思义,@OnQueueCompleted()decorator factory就是指'completed'来自Bull的事件。因此,每次队列中的作业完成时都会调用您的方法。
@OnQueueCompleted()
'completed'
参考:https ://github.com/OptimalBits/bull/blob/edfbd163991c212dd6548875c22f2745f897ae28/test/test_getters.js#L93-L115