Celery 3.1 now supports Django out of the box, please see the new tutorial
Celery Loaders - djcelery.loaders¶
-
class
djcelery.loaders.
DjangoLoader
(*args, **kwargs)¶ The Django loader.
-
autodiscover
()¶
-
close_cache
()¶
-
close_database
(**kwargs)¶
-
import_default_modules
()¶
-
mail_admins
(subject, body, fail_silently=False, **kwargs)¶
-
now
(utc=False)¶
-
on_process_cleanup
()¶ Does everything necessary for Django to work in a long-living, multiprocessing environment.
-
on_task_init
(task_id, task)¶ Called before every task.
-
on_worker_init
()¶ Called when the worker starts.
Automatically discovers any
tasks.py
files in the applications listed inINSTALLED_APPS
.
-
on_worker_process_init
()¶
-
override_backends
= {'cache': 'djcelery.backends.cache.CacheBackend', 'database': 'djcelery.backends.database.DatabaseBackend'}¶
-
read_configuration
()¶ Load configuration from Django settings.
-
warn_if_debug
(**kwargs)¶
-
-
djcelery.loaders.
autodiscover
()¶ Include tasks for all applications in
INSTALLED_APPS
.
Given an application name and a module name, tries to find that module in the application.