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

Warning when opening LocalCluster if not having network access #8559

Open
rikardn opened this issue Mar 7, 2024 · 0 comments · May be fixed by #9010
Open

Warning when opening LocalCluster if not having network access #8559

rikardn opened this issue Mar 7, 2024 · 0 comments · May be fixed by #9010
Labels
bug Something is broken good first issue Clearly described and easy to accomplish. Good for beginners to the project. help wanted

Comments

@rikardn
Copy link

rikardn commented Mar 7, 2024

When creating a LocalCluster with processes=False and the machine I am on does not have network access a warning will be given. It tries to reach 8.8.8.8 which is unnecessary. When setting processes=True no warning will be given.

>>> from distributed import LocalCluster
>>> LocalCluster(processes=False)
/home/rikard/devel/pharmpy/.tox/py311/lib/python3.11/site-packages/distributed/utils.py:181: RuntimeWarning: Couldn't detect a suitable IP address for reaching '8.8.8.8', defaulting to hostname: [Errno 101] Network is unreachable
  warnings.warn(
LocalCluster(c0181f42, 'inproc://127.0.1.1/50519/1', workers=1, threads=8, memory=31.19 GiB)

I am using Python 3.11 and dask/distributed 2024.2.0

@jacobtomlinson jacobtomlinson added bug Something is broken help wanted good first issue Clearly described and easy to accomplish. Good for beginners to the project. and removed needs triage labels Feb 11, 2025
@jacobtomlinson jacobtomlinson linked a pull request Feb 13, 2025 that will close this issue
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something is broken good first issue Clearly described and easy to accomplish. Good for beginners to the project. help wanted
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants