MCPcopy
hub / github.com/celery/celery / Scaler

Class Scaler

t/unit/worker/test_autoscale.py:81–89  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

79 def test_stop(self):
80
81 class Scaler(autoscale.Autoscaler):
82 alive = True
83 joined = False
84
85 def is_alive(self):
86 return self.alive
87
88 def join(self, timeout=None):
89 self.joined = True
90
91 worker = Mock(name='worker')
92 x = Scaler(self.pool, 10, 3, worker=worker)

Callers 2

test_stopMethod · 0.85
test_runMethod · 0.85

Calls

no outgoing calls

Tested by 2

test_stopMethod · 0.68
test_runMethod · 0.68