Skip to content

deprecate the io_loop and loop kwarg to Server, Worker, and Nanny#6473

Merged
fjetter merged 3 commits into
dask:mainfrom
graingert:deprecate-io_loop-and-loop-kwarg-to-server-worker-and-nanny
Jun 7, 2022
Merged

deprecate the io_loop and loop kwarg to Server, Worker, and Nanny#6473
fjetter merged 3 commits into
dask:mainfrom
graingert:deprecate-io_loop-and-loop-kwarg-to-server-worker-and-nanny

Conversation

@graingert

@graingert graingert commented May 30, 2022

Copy link
Copy Markdown
Member

passing anything other than IOLoop.current() is already unsupported: see #6443 (comment)

Refs #6163

  • Tests added / passed
  • Passes pre-commit run --all-files

passing anything other than IOLoop.current() is already unsupported:

see dask#6443 (comment)
@github-actions

github-actions Bot commented May 30, 2022

Copy link
Copy Markdown
Contributor

Unit Test Results

       15 files  ±0         15 suites  ±0   6h 30m 4s ⏱️ + 23m 8s
  2 824 tests +1    2 740 ✔️ ±0    82 💤 +1  2 ±0 
20 932 runs  +8  19 984 ✔️ +9  946 💤 ±0  2  - 1 

For more details on these failures, see this check.

Results for commit 476f40b. ± Comparison against base commit 715d7be.

♻️ This comment has been updated with latest results.

@graingert graingert requested review from fjetter and gjoseph92 May 31, 2022 13:32
Comment thread distributed/worker.py
@mrocklin

Copy link
Copy Markdown
Member

Fine by me. cc @jacobtomlinson to keep him in the loop

Comment thread distributed/core.py Outdated
Comment thread distributed/nanny.py Outdated
Comment thread distributed/nanny.py Outdated
Comment thread distributed/tests/test_worker.py Outdated
Comment thread distributed/utils_test.py Outdated
Comment on lines +894 to +895
if loop is not None:
warnings.warn("the loop kwarg to start_cluster is deprecated")

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since this is an internal test function, it seems better to me to just remove the argument now without a deprecation warning.

Comment thread distributed/worker.py Outdated
Co-authored-by: Gabe Joseph <gjoseph92@gmail.com>
@graingert graingert requested a review from gjoseph92 June 1, 2022 09:43
@graingert graingert force-pushed the deprecate-io_loop-and-loop-kwarg-to-server-worker-and-nanny branch from 12ace1f to 476f40b Compare June 1, 2022 12:58

@fjetter fjetter left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pending green-ish CI, we're good to go

@graingert graingert requested a review from fjetter June 1, 2022 21:22
@graingert

graingert commented Jun 6, 2022

Copy link
Copy Markdown
Member Author

@fjetter

ubuntu-latest 3.9 not c1: #6510 new seems to be related to the connection retry behaviour - and not related to this change
windows-latest 3.9 not c1: #6452
windows-latest 3.10 not c1: #6305

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

Successfully merging this pull request may close these issues.

4 participants