MCPcopy Create free account
hub / github.com/celery/celery / MapAnnotation

Class MapAnnotation

celery/app/annotations.py:18–31  ·  view source on GitHub ↗

Annotation map: task_name => attributes.

Source from the content-addressed store, hash-verified

16
17
18class MapAnnotation(dict):
19 """Annotation map: task_name => attributes."""
20
21 def annotate_any(self):
22 try:
23 return dict(self['*'])
24 except KeyError:
25 pass
26
27 def annotate(self, task):
28 try:
29 return dict(self[task.name])
30 except KeyError:
31 pass
32
33
34def prepare(annotations):

Callers 3

test_annotateMethod · 0.90
test_annotate_anyMethod · 0.90
expand_annotationFunction · 0.85

Calls

no outgoing calls

Tested by 2

test_annotateMethod · 0.72
test_annotate_anyMethod · 0.72