This document describes the current stable version of Celery (3.1). For development docs, go here.

celery.apps.worker

celery.apps.worker

This module is the ‘program-version’ of celery.worker.

It does everything necessary to run that module as an actual application, like installing signal handlers, platform tweaks, and so on.

class celery.apps.worker.Worker(app=None, hostname=None, **kwargs)[source]
extra_info()
install_platform_tweaks(worker)

Install platform specific tweaks and workarounds.

on_after_init(purge=False, no_color=None, redirect_stdouts=None, redirect_stdouts_level=None, **kwargs)
on_before_init(**kwargs)
on_consumer_ready(consumer)
on_init_blueprint()
on_start()
osx_proxy_detection_workaround()

See http://github.com/celery/celery/issues#issue/161

purge_messages()
set_process_status(info)
setup_logging(colorize=None)
startup_info()
tasklist(include_builtins=True, sep=u'\n', int_=u'celery.')