Loader
The loader used by the default app.
Attributes
| Attribute | Type | Description |
|---|---|---|
| configured | boolean | Boolean flag indicating whether the loader has successfully imported and loaded a configuration module. |
Methods
setup_settings()
@classmethod
def setup_settings(
settingsdict: dict
) - > [DictAttribute](../../utils/collections/dictattribute.md?sid=celery_utils_collections_dictattribute)
Wraps a dictionary of configuration values into a DictAttribute object to allow attribute-style access to settings.
Parameters
| Name | Type | Description |
|---|---|---|
| settingsdict | dict | The raw dictionary containing configuration keys and values to be processed |
Returns
| Type | Description |
|---|---|
[DictAttribute](../../utils/collections/dictattribute.md?sid=celery_utils_collections_dictattribute) | A dictionary-like object that supports attribute access for configuration keys |
read_configuration()
@classmethod
def read_configuration(
fail_silently: boolean = True
) - > [DictAttribute](../../utils/collections/dictattribute.md?sid=celery_utils_collections_dictattribute)
Read configuration from :file:celeryconfig.py.
Parameters
| Name | Type | Description |
|---|---|---|
| fail_silently | boolean = True | Determines whether to suppress ImportError exceptions if the configuration module cannot be located |
Returns
| Type | Description |
|---|---|
[DictAttribute](../../utils/collections/dictattribute.md?sid=celery_utils_collections_dictattribute) | The loaded configuration settings or an empty DictAttribute if the module was not found and fail_silently is True |