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

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton