celery.worker.autoscale

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

    class celery.worker.autoscale.Autoscaler(pool, max_concurrency, min_concurrency=0, worker=None, keepalive=30.0, mutex=None)

    class celery.worker.autoscale.WorkerComponent(w, \*kwargs*)[源代码]

    • conditional = True

    • create(w)

    • label = ‘Autoscaler’

    • name = u’celery.worker.autoscale.WorkerComponent’