Skip to content

Commit

Permalink
runtime env
Browse files Browse the repository at this point in the history
Signed-off-by: dentiny <[email protected]>
  • Loading branch information
dentiny committed Jan 21, 2025
1 parent 92e6695 commit fbcd4bd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion release/benchmarks/distributed/test_many_tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
def test_max_running_tasks(num_tasks):
cpus_per_task = 0.25

@ray.remote(num_cpus=cpus_per_task)
@ray.remote(num_cpus=cpus_per_task, runtime_env={"env_vars": {"FOO": "bar"}})
def task():
time.sleep(sleep_time)

Expand Down
3 changes: 1 addition & 2 deletions src/ray/raylet/worker_pool.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1470,8 +1470,7 @@ void WorkerPool::PrestartWorkers(const TaskSpecification &task_spec,
<< backlog_size << " and available CPUs " << num_available_cpus
<< " num idle workers " << state.idle.size()
<< " num registered workers " << state.registered_workers.size();
PrestartWorkers(language)
PrestartDefaultCpuWorkers(task_spec, num_needed);
PrestartWorkers(task_spec, num_needed);
}
}

Expand Down

0 comments on commit fbcd4bd

Please sign in to comment.