-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Asynchronous task in worker not running #1060
Comments
Have you tried putting |
I am using done callback to successfully end the job and also in case of failing. |
@Robinhoodbharadwaj, did you re-initialize your mongo connection inside the worker before trying to use mongoose models? |
This worked for me, do you know about other type of resources that should be re-initialized? |
Since your processor executes in a child process you need to re-initialize everything that your processor requires to use. |
Sorry, do you mean starting bull will create a new process for Bull queue sir? |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Hi,
I have started using bull for queuing jobs.
One thing i found is that one of my queue has not been able to run a worker which handles asynchronous task.
There are mongoose queries in that worker and i am running worker as a separate process as mentioned in the docs.
Can anyone help me with this ??
The text was updated successfully, but these errors were encountered: