This document is for Celery's development version, which can be significantly different from previous releases. Get the stable docs here: 3.1.
default_app= <Celery default:0x7f52339cf450>¶
main (str) – Name of the main module if running as __main__. This is used as the prefix for auto-generated task names.
broker (str) – URL of the default broker used.
backend (Union[str, type]) – The result store backend class, or the name of the backend class to use.
Default is the value of the
autofinalize (bool) – If set to False a
RuntimeErrorwill be raised if the task registry or tasks are used before the app is finalized.
set_as_current (bool) – Make this the global current app.
include (List[str]) – List of modules every worker should import.
amqp (Union[str, type]) – AMQP object or class name.
events (Union[str, type]) – Events object or class name.
log (Union[str, type]) – Log object or class name.
control (Union[str, type]) – Control object or class name.
tasks (Union[str, type]) – A task registry, or the name of a registry class.
fixups (List[str]) – List of fix-up plug-ins (e.g., see
config_source (Union[str, type]) – Take configuration from a class, or object. Attributes may include any setings described in the documentation.
Function returning the app provided or the default app if none.
The environment variable
CELERY_TRACE_APPis used to trace app leaks. When enabled an exception is raised if there is no active app.
Enable tracing of app instances.
Disable tracing of app instances.