Dries asked for a queue module. This module allows you to queue an item and dequeue it. Two workers, even if they hit the database at the very same time can not dequeue the same item. Multiple
queues are supported. Queue cleanup and priorities are not yet there -- there is always a next, patch. We have a pluggable, documented and tested architecture here.