Comment Comment by karldcampbell As long as you don't need a strict priority and a worker can just grab the next waiting job: SELECT * FROM jobs ORDER BY RANDOM() LIMIT 1 SKIP LOCKED should do the trick parent karldcampbell 2 years ago