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
Revert "[serve] Replace Ray Client with Ray Job Submission for `serve… #32976
Conversation
… run` (ray-project#30913)" This reverts commit 72f7a7d. Signed-off-by: Cindy Zhang <cindyzyx9@gmail.com>
Signed-off-by: Cindy Zhang <cindyzyx9@gmail.com>
Signed-off-by: Cindy Zhang <cindyzyx9@gmail.com>
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.
Approving the revert, but let us know if you had to make any manual changes (e.g. to fix merge conflicts)
Yup, the following manual changes were made:
|
Also, I made the same corresponding changes to the test PR on the release branch and tested it on workspaces and services, both work! |
ray-project#32976) - Previously, if connecting to a local cluster, `serve run` will directly call `ray.init()` and `serve.run` - With the change in ray-project#30913, even when connecting to a local cluster, `serve run` would submit a Ray Job to the local cluster and then call `ray.init()` and `serve.run()` inside that job. This caused the issue ray-project#32881, where if a user ran `serve run` inside a Job (or any other process with a runtime environment), they should expect to have access to the dependencies installed in that runtime environment. However since `serve run` goes through another layer of Job submission, they don't. Signed-off-by: Cindy Zhang <cindyzyx9@gmail.com>
ray-project#32976) - Previously, if connecting to a local cluster, `serve run` will directly call `ray.init()` and `serve.run` - With the change in ray-project#30913, even when connecting to a local cluster, `serve run` would submit a Ray Job to the local cluster and then call `ray.init()` and `serve.run()` inside that job. This caused the issue ray-project#32881, where if a user ran `serve run` inside a Job (or any other process with a runtime environment), they should expect to have access to the dependencies installed in that runtime environment. However since `serve run` goes through another layer of Job submission, they don't. Signed-off-by: Cindy Zhang <cindyzyx9@gmail.com>
ray-project#32976) - Previously, if connecting to a local cluster, `serve run` will directly call `ray.init()` and `serve.run` - With the change in ray-project#30913, even when connecting to a local cluster, `serve run` would submit a Ray Job to the local cluster and then call `ray.init()` and `serve.run()` inside that job. This caused the issue ray-project#32881, where if a user ran `serve run` inside a Job (or any other process with a runtime environment), they should expect to have access to the dependencies installed in that runtime environment. However since `serve run` goes through another layer of Job submission, they don't. Signed-off-by: Cindy Zhang <cindyzyx9@gmail.com>
#32976) (#33006) - Previously, if connecting to a local cluster, `serve run` will directly call `ray.init()` and `serve.run` - With the change in #30913, even when connecting to a local cluster, `serve run` would submit a Ray Job to the local cluster and then call `ray.init()` and `serve.run()` inside that job. This caused the issue #32881, where if a user ran `serve run` inside a Job (or any other process with a runtime environment), they should expect to have access to the dependencies installed in that runtime environment. However since `serve run` goes through another layer of Job submission, they don't. Signed-off-by: Cindy Zhang <cindyzyx9@gmail.com>
ray-project#32976) - Previously, if connecting to a local cluster, `serve run` will directly call `ray.init()` and `serve.run` - With the change in ray-project#30913, even when connecting to a local cluster, `serve run` would submit a Ray Job to the local cluster and then call `ray.init()` and `serve.run()` inside that job. This caused the issue ray-project#32881, where if a user ran `serve run` inside a Job (or any other process with a runtime environment), they should expect to have access to the dependencies installed in that runtime environment. However since `serve run` goes through another layer of Job submission, they don't. Signed-off-by: Jack He <jackhe2345@gmail.com>
ray-project#32976) - Previously, if connecting to a local cluster, `serve run` will directly call `ray.init()` and `serve.run` - With the change in ray-project#30913, even when connecting to a local cluster, `serve run` would submit a Ray Job to the local cluster and then call `ray.init()` and `serve.run()` inside that job. This caused the issue ray-project#32881, where if a user ran `serve run` inside a Job (or any other process with a runtime environment), they should expect to have access to the dependencies installed in that runtime environment. However since `serve run` goes through another layer of Job submission, they don't.
ray-project#32976) - Previously, if connecting to a local cluster, `serve run` will directly call `ray.init()` and `serve.run` - With the change in ray-project#30913, even when connecting to a local cluster, `serve run` would submit a Ray Job to the local cluster and then call `ray.init()` and `serve.run()` inside that job. This caused the issue ray-project#32881, where if a user ran `serve run` inside a Job (or any other process with a runtime environment), they should expect to have access to the dependencies installed in that runtime environment. However since `serve run` goes through another layer of Job submission, they don't. Signed-off-by: Edward Oakes <ed.nmi.oakes@gmail.com>
ray-project#32976) - Previously, if connecting to a local cluster, `serve run` will directly call `ray.init()` and `serve.run` - With the change in ray-project#30913, even when connecting to a local cluster, `serve run` would submit a Ray Job to the local cluster and then call `ray.init()` and `serve.run()` inside that job. This caused the issue ray-project#32881, where if a user ran `serve run` inside a Job (or any other process with a runtime environment), they should expect to have access to the dependencies installed in that runtime environment. However since `serve run` goes through another layer of Job submission, they don't.
ray-project#32976) - Previously, if connecting to a local cluster, `serve run` will directly call `ray.init()` and `serve.run` - With the change in ray-project#30913, even when connecting to a local cluster, `serve run` would submit a Ray Job to the local cluster and then call `ray.init()` and `serve.run()` inside that job. This caused the issue ray-project#32881, where if a user ran `serve run` inside a Job (or any other process with a runtime environment), they should expect to have access to the dependencies installed in that runtime environment. However since `serve run` goes through another layer of Job submission, they don't.
ray-project#32976) - Previously, if connecting to a local cluster, `serve run` will directly call `ray.init()` and `serve.run` - With the change in ray-project#30913, even when connecting to a local cluster, `serve run` would submit a Ray Job to the local cluster and then call `ray.init()` and `serve.run()` inside that job. This caused the issue ray-project#32881, where if a user ran `serve run` inside a Job (or any other process with a runtime environment), they should expect to have access to the dependencies installed in that runtime environment. However since `serve run` goes through another layer of Job submission, they don't.
ray-project#32976) - Previously, if connecting to a local cluster, `serve run` will directly call `ray.init()` and `serve.run` - With the change in ray-project#30913, even when connecting to a local cluster, `serve run` would submit a Ray Job to the local cluster and then call `ray.init()` and `serve.run()` inside that job. This caused the issue ray-project#32881, where if a user ran `serve run` inside a Job (or any other process with a runtime environment), they should expect to have access to the dependencies installed in that runtime environment. However since `serve run` goes through another layer of Job submission, they don't. Signed-off-by: elliottower <elliot@elliottower.com>
ray-project#32976) - Previously, if connecting to a local cluster, `serve run` will directly call `ray.init()` and `serve.run` - With the change in ray-project#30913, even when connecting to a local cluster, `serve run` would submit a Ray Job to the local cluster and then call `ray.init()` and `serve.run()` inside that job. This caused the issue ray-project#32881, where if a user ran `serve run` inside a Job (or any other process with a runtime environment), they should expect to have access to the dependencies installed in that runtime environment. However since `serve run` goes through another layer of Job submission, they don't. Signed-off-by: Jack He <jackhe2345@gmail.com>
… run` (#30913)"
This reverts commit 72f7a7d.
Why are these changes needed?
serve run
will directly callray.init()
andserve.run
serve run
#30913, even when connecting to a local cluster,serve run
would submit a Ray Job to the local cluster and then callray.init()
andserve.run()
inside that job. This caused the issue [serve]serve run
command within job entrypoint fails if aworking_dir
is specified #32881, where if a user ranserve run
inside a Job (or any other process with a runtime environment), they should expect to have access to the dependencies installed in that runtime environment. However sinceserve run
goes through another layer of Job submission, they don't.Related issue number
Closes #32881
Checks
git commit -s
) in this PR.scripts/format.sh
to lint the changes in this PR.