celery.app.registry
¶
Registry of available tasks.
- class celery.app.registry.TaskRegistry[исходный код]¶
Map of registered tasks.
- exception NotRegistered¶
The task is not registered.
- filter_types(type)[исходный код]¶
- periodic()[исходный код]¶
- register(task)[исходный код]¶
Register a task in the task registry.
The task will be automatically instantiated if not already an instance. Name must be configured prior to registration.
- regular()[исходный код]¶
- unregister(name)[исходный код]¶
Unregister task by name.
- Параметры:
name (str) – name of the task to unregister, or a
celery.app.task.Task
with a valid name attribute.- Исключение:
celery.exceptions.NotRegistered – if the task is not registered.