-
Notifications
You must be signed in to change notification settings - Fork 102
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
Is it possible to define multiple queue in multiple module ? #171
Comments
I'm getting this same issue. This wasn't an issue on older Nest Bull versions... but seeing this now |
I believe it has something to do with the @processor and @process decorators. I cloned your project and commented out the import for the processor and the project successfully built. Very unfortunate since the decorators really help clean up the code. I guess I'll need to revert to doing it manually. IE. Injecting the queue in the service. in the constructor manually registering the process function callback. by doing injectedQueue.process(this.processingFunction()) |
Hi guys. @stevenolay You can use this workaround until this is all fixed. |
@fwoelffel Thank for quick reply, hope you can identify the problem soon. Currently my workaround is create new module, define and re-export all my queue in it like this solution. After that other module can inject the queue to service |
@smonv Not an ideal solution since we have to declare all our queues in one master
module but it will do for now. Thanks so much for pointing me to this
solution!
…On Sun, Oct 27, 2019 at 11:50 PM smonv ***@***.***> wrote:
@fwoelffel <https://github.com/fwoelffel> Thank for quick reply, hope you
can identify the problem soon.
Currently my workaround is create new module, define and re-export all my
queue in it like this solution
<#164 (comment)>.
After that other module can inject the queue to service
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#171>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACLR6YCKELFSTZIDZUIVSLDQQZOPLANCNFSM4JEOGQAQ>
.
--
Steven O'Brian Layne
Northwestern University 2017
McCormick School of Engineering and Applied Science
Computer Science
|
Fixed. This change will be published as |
When developing an application by NestJS, I want each module can define multiple queue for it own scope. Currently when ever I import
BullModule
in second module, bull cannot recognize setting from the first module.This is test repo: https://github.com/smonv/bull-queue-test
With on queue (
app
) project run just fine. But if I add another queue (sync
) inSync
module, I got an errorThe text was updated successfully, but these errors were encountered: