python - With Celery Canvas, what is the difference between chord() and chain(group(), task) -


we're implementing workflow celery. first need run tasks in parallel, , when finished need run single task.

it seems can use chord, or group , chain:

chord(tasks, task) 

vs

group(tasks) | task 

what exact difference between two? seem same thing.

the canvas docs

chaining group task automatically upgrade chord:

c3 = (group(add.s(i, i) in xrange(10)) | xsum.s())

res = c3()

res.get()

90


Comments

Popular posts from this blog

Android : Making Listview full screen -

javascript - Parse JSON from the body of the POST -

javascript - Chrome Extension: Interacting with iframe embedded within popup -