This document describes Celery 2.4. For development docs, go here.

celery.worker.autoscale

celery.worker.autoscale

This module implements the internal thread responsible for growing and shrinking the pool according to the current autoscale settings.

The autoscale thread is only enabled if autoscale has been enabled on the command line.

copyright:
  1. 2009 - 2011 by Ask Solem.
license:

BSD, see LICENSE for more details.

class celery.worker.autoscale.Autoscaler(pool, max_concurrency, min_concurrency=0, keepalive=30, logger=None)
force_scale_down(n)
force_scale_up(n)
info()
processes
qty
run()
scale()
scale_down(n)
scale_up(n)
stop()
update(max=None, min=None)