-
Notifications
You must be signed in to change notification settings - Fork 0
Clarify ray.shutdown() behavior for local vs remote clusters #39
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
Conversation
Co-authored-by: OneSizeFitsQuorum <32640567+OneSizeFitsQuorum@users.noreply.github.com>
Co-authored-by: OneSizeFitsQuorum <32640567+OneSizeFitsQuorum@users.noreply.github.com>
|
@copilot 代码注释部分修改没问题了,请继续修改对应的文档 ray-core/api/doc/ray.shutdown.html 部分简要描述一下即可 |
Co-authored-by: OneSizeFitsQuorum <32640567+OneSizeFitsQuorum@users.noreply.github.com>
Added a note to The API documentation at |
|
@copilot 请在 ray-shutdown 文档中也修改。即在这部分文档中添加 ray.shutdown This will automatically run at the end when a Python process that uses Ray exits. It is ok to run this twice in a row. The primary use case for this function is to cleanup state between tests. Note that this will clear any remote function definitions, actor definitions, and existing actors, so if you wish to use any previously defined remote functions or actors after calling ray.shutdown(), then you need to redefine them. If they were defined in an imported module, then you will need to reload the module. Parameters |
The No separate RST file is needed as the docstring is the source for that API documentation page. |
ray.shutdown()inpython/ray/_private/worker.pyto clarify:ray.init(address="xxx"),ray.shutdown()only disconnects the client and does NOT terminate the remote clusterray.init()will have their processes terminated byray.shutdown()ray.init()without address argument will auto-detect existing clustersdoc/source/ray-core/starting-ray.rstexplaining the same behavior differenceOriginal prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.