From c649809eb2313c6f2f90254638eba289f1bf7d95 Mon Sep 17 00:00:00 2001 From: Shane McDonald Date: Wed, 13 Jul 2022 14:56:17 -0400 Subject: [PATCH] Remove debug method that calls cleanup - It's unclear why this was here. - Removing it doesnt appear to cause any problems. - It still gets called during heartbeats. --- awx/main/dispatch/pool.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/awx/main/dispatch/pool.py b/awx/main/dispatch/pool.py index f700656ea4..a102ff0b03 100644 --- a/awx/main/dispatch/pool.py +++ b/awx/main/dispatch/pool.py @@ -344,10 +344,6 @@ class AutoscalePool(WorkerPool): # max workers can't be less than min_workers self.max_workers = max(self.min_workers, self.max_workers) - def debug(self, *args, **kwargs): - self.cleanup() - return super(AutoscalePool, self).debug(*args, **kwargs) - @property def should_grow(self): if len(self.workers) < self.min_workers: