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.
This commit is contained in:
Shane McDonald 2022-07-13 14:56:17 -04:00 committed by Alan Rominger
parent 43a53f41dd
commit c649809eb2
No known key found for this signature in database
GPG Key ID: C2D7EAAA12B63559

View File

@ -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: