[Core] Add c++ API for setting max_task_retries #51205
Labels
C++-Worker
core
Issues that should be addressed in Ray Core
enhancement
Request for new feature and/or capability
P2
Important issue, but not time-critical
Description
It seems there is no way to set max_task_retries with c++ API. Could we add related API? It's important for enabling fault tolerance in c++ applications based on Ray.
Possible implementation
We may make the following change to enable users to set the option?
master/cpp/include/ray/api/actor_creator.h
Add an API for max_task_retries
master/cpp/include/ray/api/task_options.h
Add the option into ActorCreationOptions
master/cpp/src/ray/runtime/task/native_task_submitter.cc
Pass the option to ray::core::ActorCreationOptions in NativeTaskSubmitter::CreateActor function
The text was updated successfully, but these errors were encountered: