Hacker News new | ask | show | jobs
by KrugerDunnings 1171 days ago
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 *;`
1 comments

I didn't say it was difficult, I just said it was the biggest concern. That looks correct.