zlacker

[parent] [thread] 0 comments
1. yencab+(OP)[view] [source] 2024-03-10 15:52:02
Broadcasting the id to a lot of workers is not useful, only one of them should work on the task. Waking up the workers to do a SELECT FOR UPDATE .. SKIP LOCKED is the trick. At best the NOTIFY payload could include the kind of worker that should wake up.
[go to top]