Celery Loaders - djcelery.loaders

class djcelery.loaders.DjangoLoader(*args, **kwargs)

The Django loader.

close_cache()
close_database(**kwargs)
mail_admins(subject, body, fail_silently=False, **kwargs)
on_process_cleanup()

Does everything necessary for Django to work in a long-living, multiprocessing environment.

on_task_init(*args, **kwargs)

Called before every task.

on_worker_init()

Called when the worker starts.

Automatically discovers any tasks.py files in the applications listed in INSTALLED_APPS.

on_worker_process_init()
override_backends = {'cache': 'djcelery.backends.cache.CacheBackend', 'database': 'djcelery.backends.database.DatabaseBackend'}
read_configuration()

Load configuration from Django settings.

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.

Previous topic

Managers - djcelery.managers

Next topic

Periodic Task Schedulers - djcelery.schedulers

This Page