Skip to content
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

Feature enhancement: Adding Pool.broadcast() for sending some data to all child workers #185

Open
stainleebakhla opened this issue Sep 23, 2020 · 3 comments

Comments

@stainleebakhla
Copy link

Hi,

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.

Thanks

@josdejong
Copy link
Owner

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
Copy link

is there a plan to use worker_thread broadcastchannel, which make all worker recevie a broadcast message and do some actions.

@josdejong
Copy link
Owner

I'm open to pull requests implementing this (see also #65).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants