mirror of
https://github.com/wassname/ray.git
synced 2026-06-27 22:08:16 +08:00
[tune] Fix worker recovery by setting force=False when calling logger sync_now (#4302)
## What do these changes do? Fixes a tune autoscaling problem where worker recovery causes things to stall.
This commit is contained in:
committed by
Richard Liaw
parent
d5fb7b70a9
commit
7e4b4822cf
@@ -226,14 +226,13 @@ class UnifiedLogger(Logger):
|
||||
def close(self):
|
||||
for _logger in self._loggers:
|
||||
_logger.close()
|
||||
self._log_syncer.sync_now(force=True)
|
||||
self._log_syncer.sync_now(force=False)
|
||||
self._log_syncer.close()
|
||||
|
||||
def flush(self):
|
||||
for _logger in self._loggers:
|
||||
_logger.flush()
|
||||
self._log_syncer.sync_now(force=True)
|
||||
self._log_syncer.wait()
|
||||
self._log_syncer.sync_now(force=False)
|
||||
|
||||
def sync_results_to_new_location(self, worker_ip):
|
||||
"""Sends the current log directory to the remote node.
|
||||
|
||||
Reference in New Issue
Block a user