-
Notifications
You must be signed in to change notification settings - Fork 14
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
NOSUB error in PubSub class while it should be a RuntimeError #115
Comments
Hi! BTW there isn't anything in valkey-py that tries to hide that kind of error from valkey. Getting |
hi the question in my mind is about the two links i shared or am i misunderstanding this? about reproducing... I'm not sure i know a way outside of running celery, which I'll share information shortly |
hi you can test it by just sending an unsubscribe command using valkey-py, then doing the same using valkey-cli. tho valkey has reverted this behavior and sending unsubscribe no longer errors, it's still a question on how this happened in the first place. |
hi
we are trying to write a valkey backend for celery: the PR
the integration test (and some normal usage) error with the following traceback:
there are a couple of problems here:
the error shouldn't happen, at least not in this form
as you can see in the traceback,
PubSub.get_message()
is called which containes this checkand even if this doesn't work, this method is calling
PubSub.parse_response()
which should raise an error as this showsthis error is not consistent, which leads me to believe some sort of race condition is happening, i'm not sure if this is true yet, and if it is, what is causing it.
but the main issue is the first one, if you could help me understand why valkey itself is raising
NOSUB
, while valkey-py should have raised an error before valkey even gets envolvedimportant note: this problem is also true when using
redis-py
The text was updated successfully, but these errors were encountered: