Re:A Celery-like Python Task Queue in 55 Lines of Code
by mborch on Tuesday February 11, 2014 @03:10PM
(#7220064)
With PostgreSQL, you can use advisory locks and other little tricks to get better performance, e.g.
https://github.com/malthe/pq/blob/master/pq/__init__.py#L224
http://flask.pocoo.org/snippets/88/