How severe does this issue affect your experience of using Ray?
- Low: It annoys or frustrates me for a moment.
Hi! Recently I have been looking at the source code of Ray, and the options_.is_local_mode
confuse me. Specifically, it’s CoreWorker::SubmitTask
method in src/ray/core_worker/core_worker.cc
if (options_.is_local_mode) {
returned_refs = ExecuteTaskLocalMode(task_spec);
} else {
returned_refs = task_manager_->AddPendingTask(
task_spec.CallerAddress(), task_spec, CurrentCallSite(), max_retries);
io_service_.post(
[this, task_spec]() {
RAY_UNUSED(direct_task_submitter_->SubmitTask(task_spec));
},
"CoreWorker.SubmitTask");
}
I originally thought that is local mode means the task should run in the local node. But when I ran a remote function in my PC, it’s still not in local mode. FYI, I use ray.init()
and @ray.remote(num_gpus=0.1, max_calls=1)
to run my function in Ray.