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

[ray_client] convert things registered for ray into ray_client #13639

Merged

Conversation

barakmich
Copy link
Contributor

@barakmich barakmich commented Jan 23, 2021

TODO: Write tests

Related issue number

Closes #13272

Checks

  • I've run scripts/format.sh to lint the changes in this PR.
  • I've included any doc changes needed for https://docs.ray.io/en/master/.
  • I've made sure the tests are passing. Note that there might be a few flaky tests, see the recent failures at https://flakey-tests.ray.io/
  • Testing Strategy
    • Unit tests
    • Release tests
    • This PR is not tested :(

@barakmich barakmich changed the title Client convert registered things [ray_client] convert things registered for ray into ray_client Jan 23, 2021
Change-Id: I3c77f5438d6842f2b3d6d61f0e80674b1803f130
Change-Id: I358c0ed1385a7dd5b47d118419c95323dc288c53
Change-Id: Id6045eac3f96035cb636471858391ef268eb554b
Change-Id: I3b45d1db8412f17e0b014c61a62a4cf58d00554a
@barakmich barakmich force-pushed the client_convert_registered_things branch from faf0f57 to 820d705 Compare January 29, 2021 23:13
Change-Id: I3b6d7835cf90580e72e0ccac057848975132fb7a
@barakmich barakmich marked this pull request as ready for review January 29, 2021 23:54
@ericl
Copy link
Contributor

ericl commented Jan 30, 2021

One question I have is actor classes now are different depending on whether they were created before ray.util.connect vs after. Can we avoid this and always go through the conversion path? That seems like it will minimize changes for bugs due to divergence.

Copy link
Contributor

@ericl ericl left a comment

Choose a reason for hiding this comment

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

See comment on unifying the paths to avoid two different class types.

@ericl ericl added the @author-action-required The PR author is responsible for the next step. Remove tag to send back to the reviewer. label Jan 30, 2021
@barakmich
Copy link
Contributor Author

Let's see if we can remove the other hooks for remote instantiation. We can't get rid of it from ray.util.client but anything outside the client that we're adapting may be viable

Change-Id: Ieedc57f3c86a2db3f715736b529514946fcf01c3
@barakmich barakmich removed the @author-action-required The PR author is responsible for the next step. Remove tag to send back to the reviewer. label Feb 1, 2021
@barakmich
Copy link
Contributor Author

Good comment :)

@ericl
Copy link
Contributor

ericl commented Feb 2, 2021

python/ray/_private/client_mode_hook.py:5:80: E501 line too long (84 > 79 characters)

@ericl ericl added the @author-action-required The PR author is responsible for the next step. Remove tag to send back to the reviewer. label Feb 2, 2021
@ericl ericl merged commit 77ee2c5 into ray-project:master Feb 3, 2021
@ericl
Copy link
Contributor

ericl commented Feb 3, 2021

Fixed lint and merged; please note you can check your pending PRs at github.com/pulls to see which ones are blocked on issues in the future.

fishbone added a commit to fishbone/ray that referenced this pull request Feb 16, 2021
fishbone added a commit to fishbone/ray that referenced this pull request Feb 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
@author-action-required The PR author is responsible for the next step. Remove tag to send back to the reviewer.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support deferment of enabling Ray Client, while still declaring Ray remote objects
2 participants