Fix O(n^2) behavior in the log_monitor (#5569)

This commit is contained in:
Philipp Moritz
2019-08-29 14:46:31 -07:00
committed by GitHub
parent e9d2d0432a
commit 04b869678e
3 changed files with 59 additions and 1 deletions
+2
View File
@@ -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."""