From 051998800c1b1d9aa02db735409f2c9d519f76f9 Mon Sep 17 00:00:00 2001 From: allegroai <> Date: Wed, 2 Feb 2022 15:31:37 +0200 Subject: [PATCH] Fix incorrect timeout used for stale workers --- clearml/automation/auto_scaler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clearml/automation/auto_scaler.py b/clearml/automation/auto_scaler.py index 55232c67..fe834b05 100644 --- a/clearml/automation/auto_scaler.py +++ b/clearml/automation/auto_scaler.py @@ -181,7 +181,7 @@ class AutoScaler(object): def stale_workers(self, spun_workers): now = time() for worker_id, (resource, spin_time) in list(spun_workers.items()): - if now - spin_time > self.max_idle_time_min*60: + if now - spin_time > self.max_spin_up_time_min*60: self.logger.info('Stuck spun instance %s of type %s', worker_id, resource) yield worker_id