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

Deprecate old global state API. #5484

Merged
merged 2 commits into from
Sep 15, 2019

Conversation

robertnishihara
Copy link
Collaborator

Why are these changes needed?

In #4857, we reorganized the global state API. So far, we have been printing warnings saying that the old API will be deprecated, but still allowing the commands to succeed. This PR raises an exception telling the user what the correct command to use is. The next step after this has been around for a while will be to remove the deprecated APIs entirely.

@AmplabJenkins
Copy link

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Ray-PRB/16405/
Test PASSed.

"removed in a subsequent release. Use ray.objects() instead.")
raise DeprecationWarning(
"ray.global_state.object_table() is deprecated. Use ray.objects() "
"instead.")
return ray.objects(object_id=object_id)
Copy link
Contributor

Choose a reason for hiding this comment

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

this should be removed now

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Fixed, thanks!

@AmplabJenkins
Copy link

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Ray-PRB/17043/
Test FAILed.

@simon-mo simon-mo merged commit baac370 into ray-project:master Sep 15, 2019
@robertnishihara robertnishihara deleted the deprecateoldglobalstate branch September 15, 2019 18:46
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