celery.app.annotations

Task Annotations.

Annotations is a nice term for monkey-patching task classes in the configuration.

This prepares and performs the annotations in the task_annotations setting.

class celery.app.annotations.MapAnnotation[源代码]

Annotation map: task_name => attributes.

annotate(task)[源代码]
annotate_any()[源代码]
celery.app.annotations.prepare(annotations)[源代码]

Expand the task_annotations setting.

celery.app.annotations.resolve_all(anno, task)[源代码]

Resolve all pending annotations.