logoalt Hacker News

hopppyesterday at 9:39 PM0 repliesview on HN

I've been writing distributed workers for ages with stored functions that have a SELECT FOR UPDATE query.

When workers query the db for jobs the rows get locked by the select and there are no race conditions or duplicate assigned jobs