This document describes the current stable version of Celery (4.2). For development docs, go here.
celery.loaders.base¶
Loader base class.
-
class
celery.loaders.base.BaseLoader(app, **kwargs)[source]¶ Base class for loaders.
Loaders handles,
- Reading celery client/worker configurations.
- What happens when a task starts?
- See
on_task_init().
- What happens when the worker starts?
- See
on_worker_init().
- What happens when the worker shuts down?
- See
on_worker_shutdown().
- What modules are imported to find tasks?
-
builtin_modules= frozenset()¶
-
cmdline_config_parser(args, namespace='celery', re_type=re.compile('\\((\\w+)\\)'), extra_types={'json': <function loads>}, override_types={'dict': 'json', 'list': 'json', 'tuple': 'json'})[source]¶
-
conf¶ Loader configuration.
-
configured= False¶
-
override_backends= {}¶
-
worker_initialized= False¶