From 951730e22458b12189b080b3c35602c35259542e Mon Sep 17 00:00:00 2001 From: host Date: Mon, 26 Oct 2026 07:05:04 +0800 Subject: [PATCH] autoscaler: fix double-prefixed worker log filename Log file was autoscale-autoscale-1.log because worker_id already carries the autoscale- prefix; now it is autoscale-1.log. --- cloud/autoscaler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cloud/autoscaler.py b/cloud/autoscaler.py index fdd72e7..ff66f66 100644 --- a/cloud/autoscaler.py +++ b/cloud/autoscaler.py @@ -159,7 +159,7 @@ class Autoscaler: log_handle = None if self.log_dir: log_path = os.path.join( - self.log_dir, "autoscale-%s.log" % worker_id) + self.log_dir, "%s.log" % worker_id) log_handle = open(log_path, "ab") proc = subprocess.Popen( cmd, stdout=log_handle, stderr=subprocess.STDOUT,