Replies: 3 comments
-
|
Beta Was this translation helpful? Give feedback.
-
Thanks @radanskoric for the explanation |
Beta Was this translation helpful? Give feedback.
-
Closing as @radanskoric answered this really well imho. |
Beta Was this translation helpful? Give feedback.
-
queue#lock
function works since the switch to theFOR NO KEY UPDATE SKIP LOCKED
. When I look at the PostgreSQL manuals, it indicates that the row level locking will happenwithin a DB transaction
; and when a SELECTFOR NO KEY UPDATE SKIP LOCKED
finds a row within a DB transaction; any other DB sessions will skip that row when using the sameFOR NO KEY ...
.I don't see that QC does any DB transactions anywhere; so how does this work?
ORDER BY id ASC
in the query so that jobs are handled in FIFO manner?Thanks
Beta Was this translation helpful? Give feedback.
All reactions