From 8816d34541b9569ad32f655a1208845f0fd6e46a Mon Sep 17 00:00:00 2001 From: Gekho457 <62982571+Gekho457@users.noreply.github.com> Date: Fri, 30 Oct 2020 17:03:42 -0400 Subject: [PATCH] Kubernetes rsync verbosity fixed (#11716) --- python/ray/autoscaler/_private/command_runner.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/python/ray/autoscaler/_private/command_runner.py b/python/ray/autoscaler/_private/command_runner.py index 115117311..4256ebd70 100644 --- a/python/ray/autoscaler/_private/command_runner.py +++ b/python/ray/autoscaler/_private/command_runner.py @@ -193,9 +193,10 @@ class KubernetesCommandRunner(CommandRunnerInterface): target = "/root" + target[1:] try: + flags = "-aqz" if is_rsync_silent() else "-avz" self.process_runner.check_call([ KUBECTL_RSYNC, - "-avz", + flags, source, "{}@{}:{}".format(self.node_id, self.namespace, target), ]) @@ -217,9 +218,10 @@ class KubernetesCommandRunner(CommandRunnerInterface): target = "/root" + target[1:] try: + flags = "-aqz" if is_rsync_silent() else "-avz" self.process_runner.check_call([ KUBECTL_RSYNC, - "-avz", + flags, "{}@{}:{}".format(self.node_id, self.namespace, source), target, ])