-
Notifications
You must be signed in to change notification settings - Fork 43
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
Is there a broadcast? #38
Comments
Hey Nathan, I'm inclined to believe I'm misunderstanding your use-case (especially since you literally reference transmit_to_all), but I'll go for broke and start with the dumb answer: Are you familiar with Beaneater::Pool#transmit_to_all? It seems to me to be what you're describing. There's also Beaneater::Pool#transmit_until_res if you prefer to broadcast until a response is received. If you're already familiar with these methods, could you help me better understand more specifically what you're looking for? |
I never did get a resolution to it. I was asking if there was a built-in way to broadcast messages to every receiver on a tube. I was familiar with transmit_to_all but that seemed more of a raw command. I ended up writing a portion of code on the tube that looked like this.
However, I have 4 "currently_watching" and I need the message to go to all of them. (The previous 3 watchers are because the pool isn't getting closed properly.) I'm getting very sporadic behavior.. sometimes the message comes through and sometimes it doesn't. |
I'm looking for a shortcut to transmit_to_all. Essentially a way to broadcast messages to anyone watching. The usecase I'm in is transmitting progress for jobs but I'll have several watchers on it.
Technically I'm getting stale watchers and the jobs are getting put into no-where. I'm trying to work that out (possibly an issue with ActionController::Live not ever disconnecting on a refresh.
The text was updated successfully, but these errors were encountered: