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

# `celery.apps.worker`

Worker command-line program.

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)

  Worker as a program.

  emit_banner()
  extra_info()
  install_platform_tweaks(worker)

    Install platform specific tweaks and workarounds.

  macOS_proxy_detection_workaround()

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

  on_after_init(purge=False, no_color=None, redirect_stdouts=None, redirect_stdouts_level=None, **kwargs)
  on_before_init(quiet=False, **kwargs)
  on_consumer_ready(consumer)
  on_init_blueprint()
  on_start()
  purge_messages()
  set_process_status(info)
  setup_logging(colorize=None)
  startup_info(artlines=True)
  tasklist(include_builtins=True, sep='\n', int_='celery.')