mirror of
https://github.com/wassname/ray.git
synced 2026-06-29 08:49:02 +08:00
[Stats] Make metrics report time configurable (#10036)
* Done. * Lint. * Address code review. * Address code review. * Remove wrong commit. * Fix a test error.
This commit is contained in:
@@ -90,3 +90,5 @@ cdef extern from "ray/common/ray_config.h" nogil:
|
||||
c_bool put_small_object_in_memory_store() const
|
||||
|
||||
uint32_t max_tasks_in_flight_per_worker() const
|
||||
|
||||
uint64_t metrics_report_interval_ms() const
|
||||
|
||||
@@ -165,3 +165,7 @@ cdef class Config:
|
||||
@staticmethod
|
||||
def max_tasks_in_flight_per_worker():
|
||||
return RayConfig.instance().max_tasks_in_flight_per_worker()
|
||||
|
||||
@staticmethod
|
||||
def metrics_report_interval_ms():
|
||||
return RayConfig.instance().metrics_report_interval_ms()
|
||||
|
||||
Reference in New Issue
Block a user