You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Feature enhancement: Adding Pool.broadcast() for sending some data to all child workers #185
It would be a useful feature if there could be a way to send some data to all of the child workers in a pool. Something like Pool.broadcast() function would work. This could be really useful in scenarios when some initial data needs to be sent to a worker before starting any actual work.
I know this is old, but is there any plan to merge this pull request ? That would be useful I agree 😄 Although I do think the broadcast would be useful in other scenarios, not be only for initialization.
In my case, I use SQLite workers, and I'd need to send something to all workers periodically to update the connections. That's very specific, but I don't see why it should be limited to startup of workers only.
Activity
josdejong commentedon Oct 3, 2020
Thanks for your suggestion Stainlee.
I think your idea is similar to what is discussed in #65. If so let's please continue the discussion there.
frankie-zeng commentedon Jul 5, 2023
is there a plan to use worker_thread broadcastchannel, which make all worker recevie a broadcast message and do some actions.
josdejong commentedon Jul 5, 2023
I'm open to pull requests implementing this (see also #65).
pelletier197 commentedon Jan 21, 2026
I know this is old, but is there any plan to merge this pull request ? That would be useful I agree 😄 Although I do think the
broadcastwould be useful in other scenarios, not be only for initialization.In my case, I use SQLite workers, and I'd need to send something to all workers periodically to update the connections. That's very specific, but I don't see why it should be limited to startup of workers only.