-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Error when running queues in separate workers - Bullmq strategy #1726
Comments
Note, error seems to come from this part:
in the case of worker instances configured to only handle a subset of jobs, the situation of having no defined Problem - if the queue that should not be processing the job consumes the job while ignoring it, that job will never get processed. So we need a way to either ignore certain jobs (not pull them from the queue) or return them to the queue. |
Just spent a bit more time looking into this. Fundamentally the issue is that all Vendure job queues are stored in a single BullMQ BullMQ does not have any kind of "filtering" feature which allows a job to be conditionally picked up by a worker based on some function. The closest thing I can find is that in the Using this "stalled" mechanism however - if it could be made to work - would be a hack so it's not something I want to do in the plugin itself. Perhaps we can create a subclass of the |
Describe the bug
When running 2 workers with separate queues I get errors from the server and the worker that is not supposed to run the queue still tries to do it.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
No error should be displayed and jobs thaht does not concerne a worker should be ignored
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: