Process not exiting after queue.add()
#2107
Unanswered
SevenOutman
asked this question in
Q&A
Replies: 2 comments 9 replies
-
up same problem |
Beta Was this translation helpful? Give feedback.
0 replies
-
You need to close the queue: await mailQueue.close() |
Beta Was this translation helpful? Give feedback.
9 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a CLI script in which I need to send an email. I choose to use queues to defer the email sending job so that CLI user don't have to wait for it.
Now I have a script for register queues' process functions that will be run as daemon. And I have a separate CLI script in which I add jobs to queues.
queue.js
cli.js
But when I run the CLI script, the process is not exiting after adding the job, even after the email is sent. Can't figure out why.
Beta Was this translation helpful? Give feedback.
All reactions