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.

Вернуться на верх