From 4b30ac6c31f6c68bd11d9ae50d2bbb95d6f84444 Mon Sep 17 00:00:00 2001 From: allegroai <> Date: Mon, 31 Jan 2022 10:51:25 +0200 Subject: [PATCH] Change auto-scaler confusing log message --- clearml/automation/auto_scaler.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/clearml/automation/auto_scaler.py b/clearml/automation/auto_scaler.py index 795d19e5..55232c67 100644 --- a/clearml/automation/auto_scaler.py +++ b/clearml/automation/auto_scaler.py @@ -288,9 +288,10 @@ class AutoScaler(object): resource = WorkerId(worker_id).name queue = self.resource_to_queue[resource] + suffix = ', task_id={!r}'.format(task_id) if task_id else '' self.logger.info( - 'Spinning new instance resource=%r, prefix=%r, queue=%r, task_id=%r', - resource, self.workers_prefix, queue, task_id) + 'Spinning new instance resource=%r, prefix=%r, queue=%r%s', + resource, self.workers_prefix, queue, suffix) resource_conf = self.resource_configurations[resource] worker_prefix = self.gen_worker_prefix(resource, resource_conf) instance_id = self.driver.spin_up_worker(resource_conf, worker_prefix, queue, task_id=task_id)