Skip to content

Instantly share code, notes, and snippets.

View RitwikGupta's full-sized avatar
💭
🐥

Ritwik Gupta RitwikGupta

💭
🐥
View GitHub Profile
@jmizgajski
jmizgajski / group_chain.py
Created May 10, 2014 13:28
Chaining two groups of tasks in celery.
#task is a task that is not interested in any results from other tasks
#callback is a task you want to call after each group is finished (ex. log time)
# and has to take a list of results as first arguement
@app.task(base=Task)
def task(i):
#do stuff
pass
@app.task(base=Task)