This document describes the current stable version of Celery (5.4). 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)[source]

Worker as a program.

emit_banner()[source]
extra_info()[source]
install_platform_tweaks(worker)[source]

Install platform specific tweaks and workarounds.

macOS_proxy_detection_workaround()[source]

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)[source]
on_before_init(quiet=False, **kwargs)[source]
on_consumer_ready(consumer)[source]
on_init_blueprint()[source]
on_start()[source]
purge_messages()[source]
set_process_status(info)[source]
setup_logging(colorize=None)[source]
startup_info(artlines=True)[source]
tasklist(include_builtins=True, sep='\n', int_='celery.')[source]