MCPcopy
hub / github.com/celery/celery / _update_consumer_prefetch_count

Method _update_consumer_prefetch_count

celery/worker/autoscale.py:133–138  ·  view source on GitHub ↗
(self, new_max)

Source from the content-addressed store, hash-verified

131 error('Autoscaler: scale_down: %r', exc, exc_info=True)
132
133 def _update_consumer_prefetch_count(self, new_max):
134 diff = new_max - self.max_concurrency
135 if diff:
136 self.worker.consumer._update_prefetch_count(
137 diff
138 )
139
140 def info(self):
141 return {

Callers 1

updateMethod · 0.95

Calls 1

Tested by

no test coverage detected