mirror of
https://github.com/wassname/ray.git
synced 2026-07-07 23:10:26 +08:00
Pipelining task submission to workers (#9363)
* first step of pipelining * pipelining tests & default configs - added pipelining unit tests in direct_task_transport_test.cc - added an entry in ray_config_def.h, ray_config.pxi, and ray_config.pxd to configure the parameter controlling the maximum number of tasks that can be in fligh to each worker - consolidated worker_to_lease_client_ and worker_to_lease_client_ hash maps in direct_task_transport.h into a single one called worker_to_lease_entry_ * post-review revisions * linting, following naming/style convention * linting
This commit is contained in:
@@ -90,3 +90,5 @@ cdef extern from "ray/common/ray_config.h" nogil:
|
||||
c_bool gcs_actor_service_enabled() const
|
||||
|
||||
c_bool put_small_object_in_memory_store() const
|
||||
|
||||
uint32_t max_tasks_in_flight_per_worker() const
|
||||
|
||||
@@ -161,3 +161,7 @@ cdef class Config:
|
||||
@staticmethod
|
||||
def put_small_object_in_memory_store():
|
||||
return RayConfig.instance().put_small_object_in_memory_store()
|
||||
|
||||
@staticmethod
|
||||
def max_tasks_in_flight_per_worker():
|
||||
return RayConfig.instance().max_tasks_in_flight_per_worker()
|
||||
|
||||
Reference in New Issue
Block a user