mirror of
https://github.com/wassname/ray.git
synced 2026-06-28 17:34:51 +08:00
Fix O(n^2) behavior in the log_monitor (#5569)
This commit is contained in:
@@ -180,6 +180,8 @@ class Node(object):
|
||||
# Create a directory to be used for process log files.
|
||||
self._logs_dir = os.path.join(self._session_dir, "logs")
|
||||
try_to_create_directory(self._logs_dir, warn_if_exist=False)
|
||||
old_logs_dir = os.path.join(self._logs_dir, "old")
|
||||
try_to_create_directory(old_logs_dir, warn_if_exist=False)
|
||||
|
||||
def get_resource_spec(self):
|
||||
"""Resolve and return the current resource spec for the node."""
|
||||
|
||||
Reference in New Issue
Block a user