Replies: 4 comments 4 replies
|
There is a |
|
Seems found a relevant bug report, related to this issue: #16043 |
|
I would not call The linked #16043 is the important bit: current job claiming is not a safe multi-runner claim for the same queue yet, and the source comment says it sets
|
|
I see a PR #17441 that is trying to fix this issue - awesome! |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
I have jobs that send notifications on doc update to multiple users (actually, PUSH, but let's be email, as in the example) on the afterChange hook, here is the code:
It works great, but sometimes users receive the same notifications multiple times! This seem happens when several documents updated simultaneously, and the
run()from the second afterChange hook also takes into work tasks from the first afterChange hook, as they are not finished yet.So, seems Payload jobs runner doesn't lock the jobs, taken from the queue, right?
And the question is how to prevent this issue and enable locking of jobs, to prevent multiple execution of them?
All reactions