celery.worker

Worker implementation.

class celery.worker.WorkController(app=None, hostname=None, **kwargs)[исходный код]

Unmanaged worker instance.

class Blueprint(steps=None, name=None, on_start=None, on_close=None, on_stopped=None)[исходный код]

Worker bootstep blueprint.

default_steps = {'celery.worker.autoscale:WorkerComponent', 'celery.worker.components:Beat', 'celery.worker.components:Consumer', 'celery.worker.components:Hub', 'celery.worker.components:Pool', 'celery.worker.components:StateDB', 'celery.worker.components:Timer'}
name = 'Worker'
app = None
blueprint = None
exitcode = None

contains the exit code if a SystemExit event is handled.

info()[исходный код]
on_after_init(**kwargs)[исходный код]
on_before_init(**kwargs)[исходный код]
on_close()[исходный код]
on_consumer_ready(consumer)[исходный код]
on_init_blueprint()[исходный код]
on_start()[исходный код]
on_stopped()[исходный код]
pidlock = None
pool = None
prepare_args(**kwargs)[исходный код]
register_with_event_loop(hub)[исходный код]
reload(modules=None, reload=False, reloader=None)[исходный код]
rusage()[исходный код]
semaphore = None
setup_defaults(concurrency=None, loglevel='WARN', logfile=None, task_events=None, pool=None, consumer_cls=None, timer_cls=None, timer_precision=None, autoscaler_cls=None, pool_putlocks=None, pool_restarts=None, optimization=None, O=None, statedb=None, time_limit=None, soft_time_limit=None, scheduler=None, pool_cls=None, state_db=None, task_time_limit=None, task_soft_time_limit=None, scheduler_cls=None, schedule_filename=None, max_tasks_per_child=None, prefetch_multiplier=None, disable_rate_limits=None, worker_lost_wait=None, max_memory_per_child=None, **_kw)[исходный код]
setup_includes(includes)[исходный код]
setup_instance(queues=None, ready_callback=None, pidfile=None, include=None, use_eventloop=None, exclude_queues=None, **kwargs)[исходный код]
setup_queues(include, exclude=None)[исходный код]
should_use_eventloop()[исходный код]
signal_consumer_close()[исходный код]
start()[исходный код]
property state
stats()[исходный код]
stop(in_sighandler=False, exitcode=None)[исходный код]

Graceful shutdown of the worker server.

terminate(in_sighandler=False)[исходный код]

Not so graceful shutdown of the worker server.

Back to Top