mirror of
https://github.com/ansible/awx.git
synced 2026-05-09 10:27:37 -02:30
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:
committed by
Alan Rominger
parent
43a53f41dd
commit
c649809eb2
@@ -344,10 +344,6 @@ class AutoscalePool(WorkerPool):
|
|||||||
# max workers can't be less than min_workers
|
# max workers can't be less than min_workers
|
||||||
self.max_workers = max(self.min_workers, self.max_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
|
@property
|
||||||
def should_grow(self):
|
def should_grow(self):
|
||||||
if len(self.workers) < self.min_workers:
|
if len(self.workers) < self.min_workers:
|
||||||
|
|||||||
Reference in New Issue
Block a user