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
Bug: Incompatible Workers Versions #1207
Comments
Could you please double-check this was the correct version? because version 2.0.0 includes a small breaking change that could lead to an error like this. |
Current versions
|
Also just to note, this release did not change bullmq-pro / bullmq or ioredis packages
|
I'm checking the changelog and the ones that contains bullmq 1.80.4 are bullmq-pro 1.4.1 and 2.0.0 |
Hit the bug now locally, i think it may be due to something with stopping and starting workers....
Here is how we shutdown our workers :
|
@lukepolo we have analyzed this issue, and we can see that this is provoked by either mixing bullmq workers with bullmq-pro or mixing bullmq-pro workers from different versions. The teaching for us here is to implement some kind of protection mechanism so that you will get an error if trying to mix different versions of the libraries with the same queue. |
Thank you for finding that out!!!! Thats a huge help , I’ll make sure we are using the correct versions ! Will let you know what I find |
hi @lukepolo, sorry for the delay, we are working on migration changes to work for old jobs as well, we will let you know the version to try it |
No worries thanks for tackling this you guys are awesome ! |
is this fixed in the most recent version ? |
hi @lukepolo, the fix is since version 2.0.2, also you can check all the releases on https://docs.bullmq.io/bullmq-pro/changelog |
We've started to get these errors, bullmq pro 1.2.2
In the middle of debugging, were not 100% sure what the issue is as we have not changed implementations but restarted the worker for a release.
Hoping you've seen the error and its an easy fix (we'd rather not flushdb if we dont have to)
UPDATE:
we had to flushdb all to fix , after doing that (no code changes / restarting or anything) things started to work, we were in a non testing environment so had to do the hammer 🔨
The text was updated successfully, but these errors were encountered: