-
-
Notifications
You must be signed in to change notification settings - Fork 722
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
Move wait_for_signals
to private module and deprecate distributed.cli.utils
#6367
Move wait_for_signals
to private module and deprecate distributed.cli.utils
#6367
Conversation
wait_for_signals
and deprecate distributed.cli.utils
wait_for_signals
to private module and deprecate distributed.cli.utils
from tornado.ioloop import IOLoop | ||
|
||
warnings.warn( | ||
"the distributed.cli.utils module is deprecated", DeprecationWarning, stacklevel=2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps this warning could point folks to an issue or some advice on migration. Both of the functions available in this package are no longer going to be available outside distributed. So projects that depend on them will need to some something else.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also shouldn't this be calling from distributed._signals import wait_for_signals
to avoid breakages?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There should be no current dependencies apart from dask_scheduler.py
and dask_worker.py
unless someone has been very fast in following up with this change. I would not import wait_for_signals
in distributed.cli.utils
to keep it private.
Regarding the advice on migration: I'll try to come up with something, maybe @graingert has some good ideas?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah right I see it's a new method! That makes sense.
Follow-up to #6366
pre-commit run --all-files