distributed icon indicating copy to clipboard operation
distributed copied to clipboard

should pubsub-remove-subscribers actually be pubsub-remove-subscriber ?

Open ksk438 opened this issue 2 years ago • 5 comments

https://github.com/dask/distributed/blob/0dc9e8800d6e49e77e2fd5cbc71f0033cccf7b3b/distributed/pubsub.py#L188

I don't see an operation called "pubsub-remove-subscribers" .... only "pubsub-remove-subscriber". I have seen a related error in the past but don't have it on hand. Can anyone comment?

I have patched it in my local copy to be the latter and it has been working well.

ksk438 avatar Nov 09 '23 15:11 ksk438

Yes, this appears to be a typo. Looks like this is untested. Are you interested in contributing a patch (with a test)?

fjetter avatar Nov 10 '23 08:11 fjetter

I don't have the capacity at the moment. If nobody picks it up I could give it a shot in a couple months I believe.

ksk438 avatar Nov 11 '23 17:11 ksk438

Still not patched

dask 2024.11.2 distributed 2024.11.2

distributed\core.py", line 913, in handle_stream
    handler = self.stream_handlers[op]
              ~~~~~~~~~~~~~~~~~~~~^^^^
KeyError: 'pubsub-remove-subscribers'

killcoder avatar Nov 29 '24 23:11 killcoder

@killcoder: A fix is welcome. As a heads-up: The pub-sub functionality has already been deprecated.

hendrikmakait avatar Dec 02 '24 10:12 hendrikmakait

@hendrikmakait thanks for the response, I managed to figure out the replacement subscriber_topic / log_event

killcoder avatar Dec 02 '24 11:12 killcoder