Coverage for celery.app.registry : 100%
Hot-keys on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
|
# -*- coding: utf-8 -*- celery.app.registry ~~~~~~~~~~~~~~~~~~~
Registry of available tasks.
"""
"""Register a task in the task registry.
The task will be automatically instantiated if not already an instance.
"""
"""Unregister task by name.
:param name: name of the task to unregister, or a :class:`celery.task.base.Task` with a valid `name` attribute.
:raises celery.exceptions.NotRegistered: if the task has not been registered.
"""
# -- these methods are irrelevant now and will be removed in 4.0
if getattr(task, 'type', 'regular') == type)
|