Skip to content

Instantly share code, notes, and snippets.

@nherbaut
Created December 2, 2014 20:00
Show Gist options
  • Select an option

  • Save nherbaut/07c03a31eba4cd7d5d8b to your computer and use it in GitHub Desktop.

Select an option

Save nherbaut/07c03a31eba4cd7d5d8b to your computer and use it in GitHub Desktop.
Chained and paralellized workers with celery
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())))
@nherbaut
Copy link
Author

nherbaut commented Dec 2, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment