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

Function run_example1

examples/stamping/examples.py:7–18  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

5
6
7def run_example1():
8 s1 = chain(identity_task.si("foo11"), identity_task.si("foo12"))
9 s1.link(identity_task.si("link_foo1"))
10 s1.link_error(identity_task.si("link_error_foo1"))
11
12 s2 = chain(identity_task.si("foo21"), identity_task.si("foo22"))
13 s2.link(identity_task.si("link_foo2"))
14 s2.link_error(identity_task.si("link_error_foo2"))
15
16 canvas = group([s1, s2])
17 canvas.stamp(MonitoringIdStampingVisitor())
18 canvas.delay()
19
20
21def run_example2():

Callers

nothing calls this directly

Calls 8

chainClass · 0.90
groupClass · 0.90
siMethod · 0.80
linkMethod · 0.45
link_errorMethod · 0.45
stampMethod · 0.45
delayMethod · 0.45

Tested by

no test coverage detected