你正在阅读 Celery 3.1 的文档。开发版本文档见: 此处.

celery.app.registry

celery.app.registry

Registry of available tasks.

class celery.app.registry.TaskRegistry[源代码]
exception NotRegistered

The task is not registered.

TaskRegistry.filter_types(type)[源代码]
TaskRegistry.periodic()[源代码]
TaskRegistry.register(task)[源代码]

Register a task in the task registry.

The task will be automatically instantiated if not already an instance.

TaskRegistry.regular()[源代码]
TaskRegistry.unregister(name)[源代码]

Unregister task by name.

参数:name – name of the task to unregister, or a celery.task.base.Task with a valid name attribute.
引发 celery.exceptions.NotRegistered:
 if the task has not been registered.

上一个主题

celery.app.control

下一个主题

celery.app.builtins

本页