How can I know that all the tasks in the queue have completed? #1459
-
Hi, I tried to use I would appreciate your advice |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
You can check if the queue's completed job count === number of published messages
|
Beta Was this translation helpful? Give feedback.
You can check if the queue's completed job count === number of published messages
if ((await queue.getCompletedCount()) === publishedCount){ // do something }