Spec-Zone.ru › Celery

celery.app.utils

App utilities: Compat settings, bug-report tool, pickling apps.

classcelery.app.utils.Settings(*args, deprecated_settings=None, **kwargs)

Celery settings object.

propertybroker_read_url
propertybroker_url
propertybroker_write_url
finalize()
find_option(name, namespace='')

Search for option by name.

Example

>>> from proj.celery import app
>>> app.conf.find_option('disable_rate_limits')
('worker', 'prefetch_multiplier',
 <Option: type->bool default->False>))
Parameters:
  • name (str) – Name of option, cannot be partial.

  • namespace (str) – Preferred name-space (None by default).

Returns:

of (namespace, key, type).

Return type:

Tuple

find_value_for_key(name, namespace='celery')

Shortcut to get_by_parts(*find_option(name)[:-1]).

get_by_parts(*parts)

Return the current value for setting specified as a path.

Example

>>> from proj.celery import app
>>> app.conf.get_by_parts('worker', 'disable_rate_limits')
False
humanize(with_defaults=False, censored=True)

Return a human readable text showing configuration changes.

maybe_warn_deprecated_settings()
propertyresult_backend
table(with_defaults=False, censored=True)
propertytask_default_exchange
propertytask_default_routing_key
propertytimezone
value_set_for(key)
without_defaults()

Return the current configuration, but without defaults.

celery.app.utils.appstr(app)

String used in __repr__ etc, to id app instances.

celery.app.utils.bugreport(app)

Return a string containing information useful in bug-reports.

celery.app.utils.filter_hidden_settings(conf)

Filter sensitive settings.

celery.app.utils.find_app(app, symbol_by_name=<function symbol_by_name>, imp=<function import_from_cwd>)

Find app by name.

Copyright © 2017-2026 Asif Saif Uddin, core team & contributors. All rights reserved.
Celery is licensed under The BSD License (3 Clause, also known as the new BSD license). The license is an OSI approved Open Source license and is GPL-compatible.
https://docs.celeryq.dev/en/stable/reference/celery.app.utils.html

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API