This document describes the current stable version of Celery (4.1). For development docs, go here.

Source code for celery.loaders

# -*- coding: utf-8 -*-
"""Get loader by name.

Loaders define how configuration is read, what happens
when workers start, when tasks are executed and so on.
from __future__ import absolute_import, unicode_literals
from celery.utils.imports import symbol_by_name, import_from_cwd

__all__ = ['get_loader_cls']

    'app': '',
    'default': 'celery.loaders.default:Loader',
    'django': 'djcelery.loaders:DjangoLoader',

[docs]def get_loader_cls(loader): """Get loader class by name/alias.""" return symbol_by_name(loader, LOADER_ALIASES, imp=import_from_cwd)