This document describes the current stable version of Celery (3.1). For development docs,
go here.
celery.loaders.base
Loader base class.
-
class celery.loaders.base.BaseLoader(app, **kwargs)[source]
The base class for loaders.
Loaders handles,
-
autodiscover_tasks(packages, related_name='tasks')[source]
-
builtin_modules = frozenset([])
-
cmdline_config_parser(args, namespace='celery', re_type=<_sre.SRE_Pattern object at 0x06D0F8E0>, extra_types={'json': <function loads at 0x03AC8530>}, override_types={'dict': 'json', 'list': 'json', 'tuple': 'json'})[source]
-
conf[source]
Loader configuration.
-
config_from_object(obj, silent=False)[source]
-
configured = False
-
find_module(module)[source]
-
import_default_modules()[source]
-
import_from_cwd(module, imp=None, package=None)[source]
-
import_module(module, package=None)[source]
-
import_task_module(module)[source]
-
init_worker()[source]
-
init_worker_process()[source]
-
mail[source]
-
mail_admins(subject, body, fail_silently=False, sender=None, to=None, host=None, port=None, user=None, password=None, timeout=None, use_ssl=False, use_tls=False)[source]
-
now(utc=True)[source]
-
on_process_cleanup()[source]
This method is called after a task is executed.
-
on_task_init(task_id, task)[source]
This method is called before a task is executed.
-
on_worker_init()[source]
This method is called when the worker (celery worker)
starts.
-
on_worker_process_init()[source]
This method is called when a child process starts.
-
on_worker_shutdown()[source]
This method is called when the worker (celery worker)
shuts down.
-
override_backends = {}
-
read_configuration(env='CELERY_CONFIG_MODULE')[source]
-
shutdown_worker()[source]
-
worker_initialized = False