mirror of
https://github.com/wassname/ray.git
synced 2026-08-11 11:24:51 +08:00
[HOTFIX] Fix master build with missing placement group argument (#9868)
* fix common task submit default placement group * fix java_function
This commit is contained in:
@@ -68,7 +68,10 @@ def java_function(class_name, function_name):
|
||||
None, # resources,
|
||||
None, # num_return_vals,
|
||||
None, # max_calls,
|
||||
None) # max_retries)
|
||||
None, # max_retries
|
||||
placement_group_id=None,
|
||||
# TODO(ekl) set default to -1 once we support -1 as "any index"
|
||||
placement_group_bundle_index=0)
|
||||
|
||||
|
||||
def java_actor_class(class_name):
|
||||
|
||||
@@ -197,9 +197,11 @@ JNIEXPORT jobject JNICALL Java_io_ray_runtime_task_NativeTaskSubmitter_nativeSub
|
||||
|
||||
std::vector<ObjectID> return_ids;
|
||||
// TODO (kfstorm): Allow setting `max_retries` via `CallOptions`.
|
||||
ray::CoreWorkerProcess::GetCoreWorker().SubmitTask(ray_function, task_args,
|
||||
task_options, &return_ids,
|
||||
/*max_retries=*/0);
|
||||
ray::CoreWorkerProcess::GetCoreWorker().SubmitTask(
|
||||
ray_function, task_args, task_options, &return_ids,
|
||||
/*max_retries=*/0,
|
||||
/*placement_options=*/
|
||||
std::pair<ray::PlacementGroupID, int64_t>(ray::PlacementGroupID::Nil(), 0));
|
||||
|
||||
// This is to avoid creating an empty java list and boost performance.
|
||||
if (return_ids.empty()) {
|
||||
|
||||
Reference in New Issue
Block a user