This document describes the current stable version of Celery (5.2). For development docs, go here.

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[source]

Annotation map: task_name => attributes.

annotate(task)[source]
annotate_any()[source]
celery.app.annotations.prepare(annotations)[source]

Expand the task_annotations setting.

celery.app.annotations.resolve_all(anno, task)[source]

Resolve all pending annotations.