Skip to content

Commit 0320b21

Browse files
richardliawedoakes
authored andcommitted
[autoscaler] uptime redirect fix (#5907)
* small change * comment
1 parent cfb03b5 commit 0320b21

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

python/ray/autoscaler/updater.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -403,11 +403,11 @@ def wait_ready(self, deadline):
403403
logger.debug(self.log_prefix +
404404
"Waiting for remote shell...")
405405

406-
# Setting redirect=False allows the user to see errors like
406+
# Setting redirect=None allows the user to see errors like
407407
# unix_listener: path "/tmp/rkn_ray_ssh_sockets/..." too
408408
# long for Unix domain socket.
409-
self.cmd_runner.run("uptime", timeout=5, redirect=False)
410-
409+
self.cmd_runner.run("uptime", timeout=5, redirect=None)
410+
logger.debug("Uptime succeeded.")
411411
return True
412412

413413
except Exception as e:
@@ -429,6 +429,7 @@ def do_update(self):
429429
self.wait_ready(deadline)
430430

431431
node_tags = self.provider.node_tags(self.node_id)
432+
logger.debug("Node tags: {}".format(str(node_tags)))
432433
if node_tags.get(TAG_RAY_RUNTIME_CONFIG) == self.runtime_hash:
433434
logger.info(self.log_prefix +
434435
"{} already up-to-date, skip to ray start".format(

0 commit comments

Comments
 (0)