Long-running function calls can be added to a queue with a familiar
import requests def count_words_at_url(url): resp = requests.get(url) return len(resp.text.split()) # elsewhere from my_module import count_words_at_url result = q.enqueue(count_words_at_url, 'http://nvie.com')
If you like Resque but sling Python and would rather use something for which you could hack the internals, you might give rq a shot.
Have comments? Send a tweet to @TheChangelog on Twitter.
Subscribe to The Changelog Weekly – our weekly email covering everything that hits our open source radar.