Job queues with SKIP LOCKED

Two workers take jobs from one table. Lock the job you take so nobody else runs it, and let the next worker skip it instead of waiting.

Checking your access…