Skip to content

Commit b02f5c4

Browse files
marcelklehrCopilot
andauthored
fix: Address review comments
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> Signed-off-by: Marcel Klehr <mklehr@gmx.net>
1 parent 1cd198a commit b02f5c4

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

lib/private/TaskProcessing/Db/TaskMapper.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,7 @@ public function findOldestScheduledByType(array $taskTypes, array $taskIdsToIgno
8282
* This is the structural fix for the worker "claim loop": instead of every worker
8383
* racing for the single oldest task (a thundering herd that grows a per-worker
8484
* `id NOT IN (...)` ignore list and slows the SELECT), each worker claims a
85-
* *distinct* task in one round trip.
86-
*
85+
* *distinct* task in a single claim attempt without a per-worker ignore-list.
8786
* On databases that support row-level locking with SKIP LOCKED
8887
* (MySQL/MariaDB/PostgreSQL) the claim is a single transaction:
8988
* SELECT ... WHERE status = SCHEDULED [AND type IN (...)]

0 commit comments

Comments
 (0)