On Github 1stvamp / pycon-2012-talk
Wes Mason
>>> result = task.delay(foo) AsyncResult(id="some-unique-id") >>> result.get() ...
# import requests, import pymongo
# setup collection etc. etc.
hooks = webhook_collection.find({"account_id": id})
if data and len(data) > 0:
for hook in hooks:
requests.post(hook["url"], data)