FWIW, the following query exhibits the behaviour that I expect, butisn't really usable in production as I do not know how many rows toexpect per worker.
BEGIN;SELECT * FROM queueORDER BY task DESCLIMIT 2 OFFSET 0FOR UPDATE SKIP LOCKED;COMMIT;