Created
December 2, 2014 20:00
-
-
Save nherbaut/07c03a31eba4cd7d5d8b to your computer and use it in GitHub Desktop.
Chained and paralellized workers with celery
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from celery import chord | |
| from celery import group | |
| from celery import chain | |
| from tasks import download,transcode,hls,dash | |
| download.apply_async(("http://google.com","123"),link=chord(group([transcode.s(400,5),transcode.s(400,1),transcode.s(400,3), transcode.s(500,10)]),group(hls.s(),dash.s()))) | |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Demo en vidéo: https://www.youtube.com/watch?v=3VxzFh8Z3jE&feature=youtu.be