Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
KrugerDunnings
· 3y ago · 0 comments
It is easy to avoid multiple workers processing the same task: `delete from task where id = (select id from task for update skip locked limit 1) returning *;`
Comments
[–]
throwaway5959
3y ago
I didn't say it was difficult, I just said it was the biggest concern. That looks correct.