This document describes the current stable version of Celery (3.1). For development docs,
go here.
celery.worker.components
Default worker bootsteps.
-
class celery.worker.components.Timer(parent, **kwargs)[source]
This step initializes the internal timer used by the worker.
-
create(w)[source]
-
name = u'celery.worker.components.Timer'
-
on_timer_error(exc)[source]
-
on_timer_tick(delay)[source]
-
requires = ()
-
class celery.worker.components.Hub(w, **kwargs)[source]
-
create(w)[source]
-
include_if(w)[source]
-
name = u'celery.worker.components.Hub'
-
requires = (step:celery.worker.components.Timer{()},)
-
start(w)[source]
-
stop(w)[source]
-
terminate(w)[source]
-
class celery.worker.components.Queues(parent, **kwargs)[source]
This bootstep initializes the internal queues
used by the worker.
-
create(w)[source]
-
label = 'Queues (intra)'
-
name = u'celery.worker.components.Queues'
-
requires = (step:celery.worker.components.Hub{(step:celery.worker.components.Timer{()},)},)
-
class celery.worker.components.Pool(w, autoscale=None, autoreload=None, no_execv=False, optimization=None, **kwargs)[source]
Bootstep managing the worker pool.
Describes how to initialize the worker pool, and starts and stops
the pool during worker startup/shutdown.
Adds attributes:
- autoscale
- pool
- max_concurrency
- min_concurrency
-
close(w)[source]
-
create(w, semaphore=None, max_restarts=None)[source]
-
info(w)[source]
-
name = u'celery.worker.components.Pool'
-
register_with_event_loop(w, hub)[source]
-
requires = (step:celery.worker.components.Queues{(step:celery.worker.components.Hub{(step:celery.worker.components.Timer{()},)},)},)
-
terminate(w)[source]
-
class celery.worker.components.Beat(w, beat=False, **kwargs)[source]
Step used to embed a beat process.
This will only be enabled if the beat
argument is set.
-
conditional = True
-
create(w)[source]
-
label = 'Beat'
-
name = u'celery.worker.components.Beat'
-
requires = ()
-
class celery.worker.components.StateDB(w, **kwargs)[source]
This bootstep sets up the workers state db if enabled.
-
create(w)[source]
-
name = u'celery.worker.components.StateDB'
-
requires = ()
-
class celery.worker.components.Consumer(parent, **kwargs)[source]
-
create(w)[source]
-
last = True
-
name = u'celery.worker.components.Consumer'
-
requires = ()