celery.registry
Site registry for tasks.
Register a task in the task registry.
Task can either be a regular function, or a class inheriting from celery.task.Task.
Parameter: | name – By default the Task.name attribute on the task is used as the name of the task, but you can override it using this option. |
---|---|
Raises AlreadyRegistered: | |
if the task is already registered. |
Unregister task by name.
Parameter: | name – name of the task to unregister, or a celery.task.Task class with a valid name attribute. |
---|---|
Raises NotRegistered: | |
if the task has not been registered. |