Default Loader - celery.loaders.default

class celery.loaders.default.Loader

The default loader.

See the FAQ for example usage.

import_from_cwd(module, imp=<function import_module at 0x40162a8>)

Import module, but make sure it finds modules located in the current directory.

Modules located in the current directory has precedence over modules located in sys.path.

on_worker_init()

Imports modules at worker init so tasks can be registered and used by the worked.

The list of modules to import is taken from the CELERY_IMPORTS setting in celeryconf.py.

read_configuration()

Read configuration from celeryconfig.py and configure celery and Django so it can be used by regular Python.

setup_settings(settingsdict)
exception celery.loaders.default.NotConfigured

Celery has not been configured, as no config module has been found.

class celery.loaders.default.Settings
celery.loaders.default.wanted_module_item(item)

Previous topic

Loader Base Classes - celery.loaders.base

Next topic

Task Registry - celery.registry

This Page