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

[Logging] Switch worker_setup_hook to worker_process_setup_hook #37247

Merged

Conversation

rkooo567
Copy link
Contributor

Why are these changes needed?

Change worker_setup_hook -> worker_process_setup_hook

Related issue number

Checks

  • I've signed off every commit(by using the -s flag, i.e., git commit -s) in this PR.
  • 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 added any new APIs to the API Reference. For example, if I added a
      method in Tune, I've added it in doc/source/tune/api/ under the
      corresponding .rst file.
  • 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 :(

Signed-off-by: SangBin Cho <rkooo567@gmail.com>
@rkooo567 rkooo567 requested a review from a team as a code owner July 10, 2023 16:27
@rkooo567 rkooo567 mentioned this pull request Jul 11, 2023
8 tasks
rkooo567 added 4 commits July 12, 2023 13:38
Signed-off-by: SangBin Cho <rkooo567@gmail.com>
Signed-off-by: SangBin Cho <rkooo567@gmail.com>
Signed-off-by: SangBin Cho <rkooo567@gmail.com>
This is an experimental feature. The semantic of the API is subject to change.
It doesn't support [Ray Client](ray-client-ref) yet.

When you use `ray.init(runtime_env={...})` with a [Ray Job Submission](jobs-quickstart) API (`ray job subimt --working-dir` or `ray job submit --runtime-env ...`), runtime_env passed to `ray.init` is ignored.
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
When you use `ray.init(runtime_env={...})` with a [Ray Job Submission](jobs-quickstart) API (`ray job subimt --working-dir` or `ray job submit --runtime-env ...`), runtime_env passed to `ray.init` is ignored.
When you use `ray.init(runtime_env={...})` with a [Ray Job Submission](jobs-quickstart) API (`ray job submit --working-dir` or `ray job submit --runtime-env ...`), runtime_env passed to `ray.init` is ignored.

Copy link
Contributor

Choose a reason for hiding this comment

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

This is hard to parse. Are you saying that these two switches don't work when you just Ray Jobs?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ray job ... is a job API. When you use the job API, the driver runtime env is ignored.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Any recommended sentences?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I changed it. Can you take a look? If there's no response by today, I will just merge a PR!

python/ray/_private/runtime_env/setup_hook.py Outdated Show resolved Hide resolved
python/ray/runtime_env/runtime_env.py Outdated Show resolved Hide resolved
python/ray/runtime_env/runtime_env.py Outdated Show resolved Hide resolved
python/ray/runtime_env/runtime_env.py Outdated Show resolved Hide resolved
rkooo567 added 2 commits July 14, 2023 12:35
Signed-off-by: SangBin Cho <rkooo567@gmail.com>
Signed-off-by: SangBin Cho <rkooo567@gmail.com>
@rkooo567 rkooo567 merged commit e8d4c64 into ray-project:master Jul 17, 2023
rkooo567 added a commit to rkooo567/ray that referenced this pull request Jul 17, 2023
…project#37247)

Change worker_setup_hook -> worker_process_setup_hook

Signed-off-by: SangBin Cho <rkooo567@gmail.com>
bveeramani pushed a commit that referenced this pull request Jul 17, 2023
…) (#37463)

Change worker_setup_hook -> worker_process_setup_hook

Signed-off-by: SangBin Cho <rkooo567@gmail.com>
Bhav00 pushed a commit to Bhav00/ray that referenced this pull request Jul 28, 2023
NripeshN pushed a commit to NripeshN/ray that referenced this pull request Aug 15, 2023
…project#37247)

Change worker_setup_hook -> worker_process_setup_hook

Signed-off-by: NripeshN <nn2012@hw.ac.uk>
arvind-chandra pushed a commit to lmco/ray that referenced this pull request Aug 31, 2023
…project#37247)

Change worker_setup_hook -> worker_process_setup_hook

Signed-off-by: e428265 <arvind.chandramouli@lmco.com>
vymao pushed a commit to vymao/ray that referenced this pull request Oct 11, 2023
…project#37247)

Change worker_setup_hook -> worker_process_setup_hook

Signed-off-by: Victor <vctr.y.m@example.com>
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.

3 participants