mirror of
https://github.com/vale981/ray
synced 2025-03-08 19:41:38 -05:00
[tune] hotfix log_once (#10069)
This commit is contained in:
parent
bb9ef511da
commit
7a8b922841
2 changed files with 2 additions and 2 deletions
|
@ -198,7 +198,7 @@ class Searcher:
|
|||
try:
|
||||
self.save(tmp_search_ckpt_path)
|
||||
except NotImplementedError:
|
||||
with log_once("suggest:save_to_dir"):
|
||||
if log_once("suggest:save_to_dir"):
|
||||
logger.warning(
|
||||
"save not implemented for Searcher. Skipping save.")
|
||||
success = False
|
||||
|
|
|
@ -44,7 +44,7 @@ def log_sync_template(options=""):
|
|||
unavailable.
|
||||
"""
|
||||
if not distutils.spawn.find_executable("rsync"):
|
||||
with log_once("tune:rsync"):
|
||||
if log_once("tune:rsync"):
|
||||
logger.error("Log sync requires rsync to be installed.")
|
||||
return None
|
||||
global _log_sync_warned
|
||||
|
|
Loading…
Add table
Reference in a new issue