-
-
Notifications
You must be signed in to change notification settings - Fork 719
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
Non-daemonic workers #2718
Comments
You might try setting up |
The first solution that comes to mind is to not run workers as daemons, but I suspect there's a reason why they are. So why are workers run as daemons? |
In particular, is there any reason why this isn't a parameter to the |
I have no problem with making that configurable. I might suggest a config option rather than piping it through all of the constructors. https://docs.dask.org/en/latest/configuration.html Any interest in submitting a Pull Request with that change? |
Yeah I can work on a PR |
Checking in here @calebho . Is there anything I can do to help? |
@mrocklin Thanks for checking in. I started working on this last week, but I had to put it on hold because other things came up. I should have something by the end of the week or so |
OK cool. Thanks for the update.
…On Tue, May 28, 2019 at 1:20 PM Caleb ***@***.***> wrote:
@mrocklin <https://github.com/mrocklin> Thanks for checking in. I started
working on this last week, but I had to put it on hold because other things
came up. I should have something by the end of the week or so
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#2718?email_source=notifications&email_token=AACKZTCZ7NEWYZ5642QMGODPXVZXJA5CNFSM4HOGODHKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODWM76UA#issuecomment-496631632>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AACKZTGJQPMROZHU5JO4ANTPXVZXJANCNFSM4HOGODHA>
.
|
I am new to dask. Is that possible to set |
@zhanghang1989 I recommend raising a new issue. I recommend not repeating your comment on multiple issues. |
Hey @mrocklin question about @gen_cluster(ncores=[("127.0.0.1", 1)], client=True, Worker=Nanny)
def test_worker_no_daemon(c, s, a):
def noop():
pass
def multiprocessing_worker():
p = mp.Process(target=noop)
p.start()
p.join()
with dask.config.set({"distributed.worker.daemon": False}):
from pprint import pprint
print('config in test')
pprint(dask.config.config)
yield c.submit(multiprocessing_worker) The config value seems to be set in the test, but not in the |
You are calling |
Related to #2142, but the solution doesn't apply in my case. I have a use case for workers running in separate processes, but as non-daemons because the worker processes need to use multiprocessing. Here's an example:
If
processes=True
, then we get an error about daemonic processes not being allowed to have children:If
processes=False
, we get stuck at distributed initialization.The text was updated successfully, but these errors were encountered: