mirror of
https://github.com/wassname/ray.git
synced 2026-07-05 09:24:28 +08:00
Add option to evict keys LRU from the sharded redis tables (#3499)
* wip * wip * format * wip * note * lint * fix * flag * typo * raise timeout * fix * optional get * fix flag * increase timeout in test * update docs * format
This commit is contained in:
committed by
Philipp Moritz
parent
0136af5aac
commit
cffe8f9806
@@ -128,6 +128,19 @@ class Profiler(object):
|
||||
self.events.append(event)
|
||||
|
||||
|
||||
class NoopProfiler(object):
|
||||
"""A no-op profile used when collect_profile_data=False."""
|
||||
|
||||
def start_flush_thread(self):
|
||||
pass
|
||||
|
||||
def flush_profile_data(self):
|
||||
pass
|
||||
|
||||
def add_event(self, event):
|
||||
pass
|
||||
|
||||
|
||||
class RayLogSpanRaylet(object):
|
||||
"""An object used to enable logging a span of events with a with statement.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user