mirror of
https://github.com/wassname/ray.git
synced 2026-08-16 11:27:09 +08:00
[tune] Sync logs from workers and improve tensorboard reporting (#1567)
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user