[tune] Sync logs from workers and improve tensorboard reporting (#1567)

This commit is contained in:
Eric Liang
2018-02-26 11:35:51 -08:00
committed by Richard Liaw
parent aefefcb0cd
commit 87e107edd8
6 changed files with 133 additions and 35 deletions
+23
View File
@@ -0,0 +1,23 @@
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import getpass
import os
def get_ssh_user():
"""Returns ssh username for connecting to cluster workers."""
return getpass.getuser()
# TODO(ekl) this currently only works for clusters launched with
# ray create_or_update
def get_ssh_key():
"""Returns ssh key to connecting to cluster workers."""
path = os.path.expanduser("~/ray_bootstrap_key.pem")
if os.path.exists(path):
return path
return None