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
Deprecate the processors module option #95
Comments
@fwoelffel Before removing |
Oopsie, I totally forgot about that feature. I'll come back to you with a proper implementation / example. |
@fwoelffel Is example available anywhere? Completely stuck on this one, can't sell nest-bull to lead without showing how to use workers in separate process :( |
Ok. I've had some time to think about this and I've come to the conclusion that the However, this options' type will change from export type BullQueueProcessor =
BullQueueProcessorCallback // (job: Job, done: DoneCallback) => void
| BullQueueAdvancedProcessor // { concurrency?: number; name?: string; callback: BullQueueProcessorCallback; }
| BullQueueSeparateProcessor // string
| BullQueueAdvancedSeparateProcessor; // { concurrency?: number; name?: string; path: string; } to export type BullQueueProcessor =
BullQueueSeparateProcessor // string
| BullQueueAdvancedSeparateProcessor; // { concurrency?: number; name?: string; path: string; } @igor-sky there's already an example in the README. Doesn't this work for you? |
Closed by 1dd0303 |
The
BullModuleOptions.processors
property has become redundant since the implementation of the decorators which provide a more elegant solution.I should deprecate this ASAP and remove this property in a future release to reduce the code complexity.
The text was updated successfully, but these errors were encountered: