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

[C++ API] add default_actor_lifetime param and add more exception info for cpp worker #25929

Conversation

larrylian
Copy link
Contributor

@larrylian larrylian commented Jun 20, 2022

Why are these changes needed?

add default_actor_lifetime param and add more exception info for cpp worker

Related issue number

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 :(

@WangTaoTheTonic
Copy link
Contributor

Nice! Should we add some test cases?

@larrylian
Copy link
Contributor Author

Nice! Should we add some test cases?

yes,I will try add test cases.

cpp/include/ray/api/ray_config.h Outdated Show resolved Hide resolved
cpp/src/ray/config_internal.cc Outdated Show resolved Hide resolved
@larrylian larrylian force-pushed the add_default_actor_lifetime_param_and_more_excetpion_info branch from 3ee91b8 to 63cd8c3 Compare June 21, 2022 02:42
@larrylian larrylian force-pushed the add_default_actor_lifetime_param_and_more_excetpion_info branch from 63cd8c3 to a0a84a7 Compare June 22, 2022 02:39
cpp/BUILD.bazel Outdated Show resolved Hide resolved
@@ -129,6 +148,11 @@ void ConfigInternal::Init(RayConfig &config, int argc, char **argv) {
head_args.insert(head_args.end(), args.begin(), args.end());
}
startup_token = absl::GetFlag<int64_t>(FLAGS_startup_token);
if (!FLAGS_ray_default_actor_lifetime.CurrentValue().empty()) {
std::cout << "xxxx";
Copy link
Contributor

Choose a reason for hiding this comment

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

remove this

cpp/src/ray/test/api_test.cc Outdated Show resolved Hide resolved
cpp/src/ray/test/api_test.cc Show resolved Hide resolved
cpp/src/ray/test/api_test.cc Outdated Show resolved Hide resolved
cpp/src/ray/test/cluster/counter.cc Outdated Show resolved Hide resolved
cpp/src/ray/test/cluster/counter.h Outdated Show resolved Hide resolved
@larrylian larrylian force-pushed the add_default_actor_lifetime_param_and_more_excetpion_info branch 4 times, most recently from 82e3843 to 22cc120 Compare June 22, 2022 06:55
cpp/BUILD.bazel Outdated Show resolved Hide resolved
@larrylian larrylian force-pushed the add_default_actor_lifetime_param_and_more_excetpion_info branch 3 times, most recently from 9716918 to 47c0117 Compare June 24, 2022 06:23
Copy link
Contributor

@SongGuyang SongGuyang left a comment

Choose a reason for hiding this comment

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

LGTM, good job!

@larrylian larrylian changed the title add default_actor_lifetime param and add more exception info for cpp worker [C++ API] add default_actor_lifetime param and add more exception info for cpp worker Jun 24, 2022
@larrylian larrylian force-pushed the add_default_actor_lifetime_param_and_more_excetpion_info branch from 47c0117 to aa92e6b Compare June 28, 2022 03:30
@larrylian larrylian force-pushed the add_default_actor_lifetime_param_and_more_excetpion_info branch from aa92e6b to 6e36b52 Compare June 28, 2022 06:26
@raulchen raulchen merged commit de0ccc1 into ray-project:master Jun 29, 2022
@raulchen raulchen deleted the add_default_actor_lifetime_param_and_more_excetpion_info branch June 29, 2022 10:01
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