celery.apps.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*)

    • extra_info()[源代码]

    • install_platform_tweaks(worker)

      Install platform specific tweaks and workarounds.

    • on_before_init(\*kwargs*)

    • on_consumer_ready(consumer)[源代码]

    • on_init_blueprint()

    • on_start()

    • purge_messages()

    • set_process_status(info)[源代码]

    • setup_logging(colorize=None)

    • startup_info()[源代码]